TDoG-Skin/vendor/doctrine/deprecations/test_fixtures/src/Foo.php

23 lines
372 B
PHP
Raw Normal View History

2024-08-17 18:43:48 +08:00
<?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();
}
}