Skip to content

Commit

Permalink
Update to latest PHP 8.1 syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Nov 3, 2024
1 parent a41df1f commit e80233c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/Adapter/IgBinaryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function setUp(): void
$this->fail(
"Laminas\\Serializer\\Adapter\\IgBinary needs missing ext/igbinary but did't throw exception"
);
} catch (ExtensionNotLoadedException $e) {
} catch (ExtensionNotLoadedException) {
}
$this->markTestSkipped('Laminas\\Serializer\\Adapter\\IgBinary needs ext/igbinary');
}
Expand Down
4 changes: 1 addition & 3 deletions test/AdapterPluginManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ public function testConfiguresSerializerServicesWhenFound(): void
'test' => 'test-too',
],
'factories' => [
'test-too' => function () use ($serializer): AdapterInterface {
return $serializer;
},
'test-too' => fn(): AdapterInterface => $serializer,
],
],
];
Expand Down

0 comments on commit e80233c

Please sign in to comment.