Skip to content

Commit 367502a

Browse files
nikophilkbond
authored andcommitted
bot: fix cs [skip ci]
1 parent 94e7f4e commit 367502a

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/Persistence/ProxyGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static function unwrap(mixed $what, bool $withAutoRefresh = true): mixed
9999
return $what->_real($withAutoRefresh); // @phpstan-ignore return.type
100100
}
101101

102-
if (\PHP_VERSION_ID >= 80400 && is_object($what) && ($reflector = new \ReflectionClass($what))->isUninitializedLazyObject($what)) {
102+
if (\PHP_VERSION_ID >= 80400 && \is_object($what) && ($reflector = new \ReflectionClass($what))->isUninitializedLazyObject($what)) {
103103
return $reflector->initializeLazyObject($what);
104104
}
105105

src/Persistence/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function enable_persisting(): void
181181
*/
182182
function initialize_proxy_object(mixed $what): void
183183
{
184-
if (\PHP_VERSION_ID >= 80400 && is_object($what) && ($reflector = new \ReflectionClass($what))->isUninitializedLazyObject($what)) {
184+
if (\PHP_VERSION_ID >= 80400 && \is_object($what) && ($reflector = new \ReflectionClass($what))->isUninitializedLazyObject($what)) {
185185
$reflector->initializeLazyObject($what);
186186

187187
return;

tests/Integration/DataProvider/DataProviderWithPersistentFactoryAndPHP84InKernelTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,17 @@
1414
namespace Zenstruck\Foundry\Tests\Integration\DataProvider;
1515

1616
use PHPUnit\Framework\Attributes\DataProvider;
17-
use PHPUnit\Framework\Attributes\IgnoreDeprecations;
1817
use PHPUnit\Framework\Attributes\RequiresPhp;
1918
use PHPUnit\Framework\Attributes\RequiresPhpunit;
2019
use PHPUnit\Framework\Attributes\RequiresPhpunitExtension;
2120
use PHPUnit\Framework\Attributes\Test;
2221
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
23-
use Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory;
24-
use Zenstruck\Foundry\Persistence\Proxy;
2522
use Zenstruck\Foundry\PHPUnit\FoundryExtension;
2623
use Zenstruck\Foundry\Test\Factories;
2724
use Zenstruck\Foundry\Test\ResetDatabase;
2825
use Zenstruck\Foundry\Tests\Fixture\Factories\Entity\GenericEntityFactory;
2926
use Zenstruck\Foundry\Tests\Fixture\Model\GenericModel;
3027

31-
use function Zenstruck\Foundry\Persistence\unproxy;
32-
3328
/**
3429
* @author Nicolas PHILIPPE <[email protected]>
3530
* @requires PHPUnit >=11.4

0 commit comments

Comments
 (0)