forked from schmittjoh/serializer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
17,389 additions
and
9,793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,317 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
$ignoreErrors = []; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Builder/CallbackDriverFactory.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/EventDispatcher/EventDispatcher.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/EventDispatcher/EventDispatcher.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$class of function class_exists expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 2, | ||
'path' => __DIR__ . '/src/JMS/Serializer/EventDispatcher/Subscriber/DoctrineProxySubscriber.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/EventDispatcher/Subscriber/DoctrineProxySubscriber.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_filter expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Exclusion/GroupsExclusionStrategy.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Exclusion/GroupsExclusionStrategy.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Exclusion/GroupsExclusionStrategy.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/GenericDeserializationVisitor.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/GenericSerializationVisitor.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/GraphNavigator.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/GraphNavigator.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$class of function class_exists expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/GraphNavigator.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$interface of function interface_exists expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/GraphNavigator.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Handler/HandlerRegistry.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/JsonSerializationVisitor.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#2 \\$flags of function json_encode expects int, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/JsonSerializationVisitor.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_flip expects array\\<int\\|string\\>, array given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/ClassMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/ClassMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function ksort expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/ClassMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function uksort expects TArray of array\\<TKey of int\\|string, T\\>, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/ClassMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/ClassMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/ClassMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/ClassMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 3, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/Driver/XmlDriver.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function strtoupper expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/Driver/XmlDriver.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/Driver/YamlDriver.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$data of function unserialize expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/PropertyMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function ucfirst expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 4, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Metadata/PropertyMetadata.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$directory of function mkdir expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/SerializerBuilder.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_pop expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Util/Writer.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function rtrim expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 2, | ||
'path' => __DIR__ . '/src/JMS/Serializer/Util/Writer.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 2, | ||
'path' => __DIR__ . '/src/JMS/Serializer/XmlDeserializationVisitor.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$namespace of method DOMDocument\\:\\:createElementNS\\(\\) expects string\\|null, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 2, | ||
'path' => __DIR__ . '/src/JMS/Serializer/XmlSerializationVisitor.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$namespace of method DOMElement\\:\\:setAttributeNS\\(\\) expects string\\|null, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/src/JMS/Serializer/XmlSerializationVisitor.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function sha1 expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 2, | ||
'path' => __DIR__ . '/src/JMS/Serializer/XmlSerializationVisitor.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$keys of function array_combine expects array\\<int\\|string\\>, array given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Fixtures/AccessorSetter.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function strtoupper expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Fixtures/ContextualNamingStrategy.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function ucfirst expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Fixtures/ContextualNamingStrategy.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Fixtures/ObjectWithLifecycleCallbacks.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 4, | ||
'path' => __DIR__ . '/tests/Metadata/ClassMetadataTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function strtoupper expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Metadata/ClassMetadataTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Metadata/Driver/BaseDriverTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Metadata/Driver/YamlDriverTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$class of class ReflectionProperty constructor expects object\\|string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 2, | ||
'path' => __DIR__ . '/tests/Serializer/BaseSerializationTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object\\|null, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Serializer/BaseSerializationTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 2, | ||
'path' => __DIR__ . '/tests/Serializer/BaseSerializationTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Serializer/Doctrine/IntegrationTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Serializer/Doctrine/ObjectConstructorTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$string of function ucfirst expects string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/Serializer/JsonSerializationTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$class of class ReflectionProperty constructor expects object\\|string, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/SerializerBuilderTest.php', | ||
]; | ||
$ignoreErrors[] = [ | ||
'message' => '#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object\\|null, mixed given\\.$#', | ||
'identifier' => 'argument.type', | ||
'count' => 1, | ||
'path' => __DIR__ . '/tests/SerializerBuilderTest.php', | ||
]; | ||
|
||
return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
Oops, something went wrong.