Fix PHPStan errors, add baseline for denormalize covariance #131
Annotations
22 errors and 2 warnings
|
build (8.4, lowest)
Process completed with exit code 255.
|
|
build (8.4, lowest)
Process completed with exit code 1.
|
|
build (8.4, lowest):
tests/Validator/ConstraintsSetFactory/Field/DateTimeZoneProviderTest.php#L21
Static method AssoConnect\PHPDateBundle\Tests\Validator\ConstraintsSetFactory\Field\DateTimeZoneProviderTest::getConstraintsForTypeProvider() overrides non-static method AssoConnect\ValidatorBundle\Test\FieldConstraintsSetProviderTestCase::getConstraintsForTypeProvider().
|
|
build (8.4, lowest):
tests/Validator/ConstraintsSetFactory/Field/AbsoluteDateProviderTest.php#L21
Static method AssoConnect\PHPDateBundle\Tests\Validator\ConstraintsSetFactory\Field\AbsoluteDateProviderTest::getConstraintsForTypeProvider() overrides non-static method AssoConnect\ValidatorBundle\Test\FieldConstraintsSetProviderTestCase::getConstraintsForTypeProvider().
|
|
build (8.4, lowest):
src/Validator/ConstraintsSetFactory/Field/DateTimeZoneProvider.php#L19
Method getConstraints always return list, but is marked as array<Symfony\Component\Validator\Constraint>
|
|
build (8.4, lowest):
src/Validator/ConstraintsSetFactory/Field/AbsoluteDateProvider.php#L19
Method getConstraints always return list, but is marked as array<Symfony\Component\Validator\Constraint>
|
|
build (8.4, lowest):
src/Translatable/AbsoluteDateTranslatable.php#L72
Method AssoConnect\PHPDateBundle\Translatable\AbsoluteDateTranslatable::trans() should return string but returns string|true.
|
|
build (8.4, lowest):
src/Translatable/AbsoluteDateTranslatable.php#L60
Strict comparison using !== between string and false will always evaluate to true.
|
|
build (8.4, lowest):
src/Normalizer/AbsoluteDateNormalizer.php#L53
Method AssoConnect\PHPDateBundle\Normalizer\AbsoluteDateNormalizer::denormalize() has parameter $context with no value type specified in iterable type array.
|
|
build (8.4, lowest):
src/Normalizer/AbsoluteDateNormalizer.php#L45
Method AssoConnect\PHPDateBundle\Normalizer\AbsoluteDateNormalizer::supportsNormalization() has parameter $context with no value type specified in iterable type array.
|
|
build (8.4, lowest):
src/Normalizer/AbsoluteDateNormalizer.php#L0
Ignored error pattern #^Return type \(AssoConnect\\PHPDate\\AbsoluteDate\) of method AssoConnect\\PHPDateBundle\\Normalizer\\AbsoluteDateNormalizer\:\:denormalize\(\) should be covariant with return type \(\(\$type is class\-string\<object\> \? object \: mixed\)\) of method Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface\:\:denormalize\(\)$# (method.childReturnType) in path /home/runner/work/php-date-bundle/php-date-bundle/src/Normalizer/AbsoluteDateNormalizer.php was not matched in reported errors.
|
|
build (8.3, lowest)
Process completed with exit code 255.
|
|
build (8.3, lowest)
Process completed with exit code 1.
|
|
build (8.3, lowest):
tests/Validator/ConstraintsSetFactory/Field/DateTimeZoneProviderTest.php#L21
Static method AssoConnect\PHPDateBundle\Tests\Validator\ConstraintsSetFactory\Field\DateTimeZoneProviderTest::getConstraintsForTypeProvider() overrides non-static method AssoConnect\ValidatorBundle\Test\FieldConstraintsSetProviderTestCase::getConstraintsForTypeProvider().
|
|
build (8.3, lowest):
tests/Validator/ConstraintsSetFactory/Field/AbsoluteDateProviderTest.php#L21
Static method AssoConnect\PHPDateBundle\Tests\Validator\ConstraintsSetFactory\Field\AbsoluteDateProviderTest::getConstraintsForTypeProvider() overrides non-static method AssoConnect\ValidatorBundle\Test\FieldConstraintsSetProviderTestCase::getConstraintsForTypeProvider().
|
|
build (8.3, lowest):
src/Validator/ConstraintsSetFactory/Field/DateTimeZoneProvider.php#L19
Method getConstraints always return list, but is marked as array<Symfony\Component\Validator\Constraint>
|
|
build (8.3, lowest):
src/Validator/ConstraintsSetFactory/Field/AbsoluteDateProvider.php#L19
Method getConstraints always return list, but is marked as array<Symfony\Component\Validator\Constraint>
|
|
build (8.3, lowest):
src/Translatable/AbsoluteDateTranslatable.php#L72
Method AssoConnect\PHPDateBundle\Translatable\AbsoluteDateTranslatable::trans() should return string but returns string|true.
|
|
build (8.3, lowest):
src/Translatable/AbsoluteDateTranslatable.php#L60
Strict comparison using !== between string and false will always evaluate to true.
|
|
build (8.3, lowest):
src/Normalizer/AbsoluteDateNormalizer.php#L53
Method AssoConnect\PHPDateBundle\Normalizer\AbsoluteDateNormalizer::denormalize() has parameter $context with no value type specified in iterable type array.
|
|
build (8.3, lowest):
src/Normalizer/AbsoluteDateNormalizer.php#L45
Method AssoConnect\PHPDateBundle\Normalizer\AbsoluteDateNormalizer::supportsNormalization() has parameter $context with no value type specified in iterable type array.
|
|
build (8.3, lowest):
src/Normalizer/AbsoluteDateNormalizer.php#L0
Ignored error pattern #^Return type \(AssoConnect\\PHPDate\\AbsoluteDate\) of method AssoConnect\\PHPDateBundle\\Normalizer\\AbsoluteDateNormalizer\:\:denormalize\(\) should be covariant with return type \(\(\$type is class\-string\<object\> \? object \: mixed\)\) of method Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface\:\:denormalize\(\)$# (method.childReturnType) in path /home/runner/work/php-date-bundle/php-date-bundle/src/Normalizer/AbsoluteDateNormalizer.php was not matched in reported errors.
|
|
SonarScanner
This action is deprecated and will be removed in a future release. Please use the sonarqube-scan-action action instead. The sonarqube-scan-action is a drop-in replacement for this action.
|
|
SonarScanner
This action is deprecated and will be removed in a future release. Please use the sonarqube-scan-action action instead. The sonarqube-scan-action is a drop-in replacement for this action.
|