Commit 3cbe708
authored
fix(phpstan): apply phpstan fixes (#2721)
## Description
Fixes failing PHPStan
```
------ ------------------------------------------------------------------
Line src/Model/ModelRegistry.php
------ ------------------------------------------------------------------
122 Variable $schemaJson on left side of ?? always exists and is not
nullable.
🪪 nullCoalesce.variable
------ ------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line src/Util/LegacyTypeConverter.php
------ -----------------------------------------------------------------------
50 Strict comparison using === between 'null' and
'array'|'int'|'object'|'string' will always evaluate to false.
🪪 identical.alwaysFalse
💡 If Symfony\Component\PropertyInfo\Type::isCollection() is impure,
add @phpstan-impure PHPDoc tag above its declaration. Learn more: htt
ps://phpstan.org/blog/remembering-and-forgetting-returned-values
💡 If Symfony\Component\PropertyInfo\Type::getClassName() is impure,
add @phpstan-impure PHPDoc tag above its declaration. Learn more: htt
ps://phpstan.org/blog/remembering-and-forgetting-returned-values
💡 If Symfony\Component\PropertyInfo\Type::getCollectionValueTypes()
is impure, add @phpstan-impure PHPDoc tag above its declaration. Lear
n more: https://phpstan.org/blog/remembering-and-forgetting-returned-
values
💡 If Symfony\Component\PropertyInfo\Type::getCollectionKeyTypes() is
impure, add @phpstan-impure PHPDoc tag above its declaration. Learn m
ore: https://phpstan.org/blog/remembering-and-forgetting-returned-val
ues
------ -----------------------------------------------------------------------
```
## What type of PR is this? (check all applicable)
- [x] Bug Fix
- [ ] Feature
- [ ] Refactor
- [ ] Deprecation
- [ ] Breaking Change
- [ ] Documentation Update
- [x] CI
## Checklist
- [ ] I have made corresponding changes to the documentation (`docs/`)1 parent 19140a5 commit 3cbe708
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments