mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
23 lines
372 B
PHP
23 lines
372 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace DeprecationTests;
|
||
|
|
||
|
use Doctrine\Foo\Bar;
|
||
|
|
||
|
class Foo
|
||
|
{
|
||
|
public static function triggerDependencyWithDeprecation(): void
|
||
|
{
|
||
|
$bar = new Bar();
|
||
|
$bar->oldFunc();
|
||
|
}
|
||
|
|
||
|
public static function triggerDependencyWithDeprecationFromInside(): void
|
||
|
{
|
||
|
$bar = new Bar();
|
||
|
$bar->newFunc();
|
||
|
}
|
||
|
}
|