fix missing return types on Column #18
1557 new problems found by Qodana for PHP
Qodana for PHP
1557 new problems were found
| Inspection name | Severity | Problems |
|---|---|---|
Undefined constant |
🔴 Failure | 1 |
Undefined class |
🔶 Warning | 64 |
Extension is missing in composer.json |
🔶 Warning | 32 |
Undefined namespace |
🔶 Warning | 32 |
Parameter type |
🔶 Warning | 18 |
Undefined method |
🔶 Warning | 17 |
Incompatible return type |
🔶 Warning | 16 |
Parameter's name changed during inheritance |
🔶 Warning | 7 |
Invalid function result used |
🔶 Warning | 6 |
Redundant character escape |
🔶 Warning | 6 |
Inconsistent return points |
🔶 Warning | 5 |
Expression result unused |
🔶 Warning | 3 |
Optional before required parameter |
🔶 Warning | 3 |
Property usages have same access |
🔶 Warning | 3 |
Statement has empty body |
🔶 Warning | 3 |
Redundant assignment |
🔶 Warning | 2 |
Array to string conversion |
🔶 Warning | 1 |
Deprecated 'Serializable' interface usage |
🔶 Warning | 1 |
Class path doesn't match project structure |
🔶 Warning | 1 |
Missing parent call for constructor |
🔶 Warning | 1 |
Fully qualified name usage |
◽️ Notice | 386 |
Missing return type declaration |
◽️ Notice | 265 |
Missing parameter's type declaration |
◽️ Notice | 135 |
Unhandled exception |
◽️ Notice | 117 |
Missing property's type declaration |
◽️ Notice | 86 |
Class constant referenced via child class |
◽️ Notice | 61 |
Missing @throws tag(s) |
◽️ Notice | 58 |
Possible polymorphic call |
◽️ Notice | 30 |
Unnecessary fully qualified name |
◽️ Notice | 26 |
Deprecated |
◽️ Notice | 23 |
PHPDoc comment matches function/method signature |
◽️ Notice | 19 |
Return type in PHPDoc comment does not match the actual return type |
◽️ Notice | 17 |
Unused local variable |
◽️ Notice | 15 |
Redundant optional argument |
◽️ Notice | 12 |
Unnecessary leading '\' in 'use' statement |
◽️ Notice | 12 |
Unused parameter |
◽️ Notice | 10 |
Condition always evaluates to 'true/false' |
◽️ Notice | 9 |
Unused import |
◽️ Notice | 9 |
PHPDoc comment signature is not complete |
◽️ Notice | 8 |
Inappropriate @inheritDoc usage |
◽️ Notice | 7 |
Unnecessary local variable |
◽️ Notice | 5 |
Property can be 'readonly' |
◽️ Notice | 4 |
Undefined variable |
◽️ Notice | 3 |
Type cast is unnecessary |
◽️ Notice | 2 |
Redundant @throws tag(s) |
◽️ Notice | 2 |
Idempotent operation in binary expression |
◽️ Notice | 2 |
Private property can be local |
◽️ Notice | 2 |
Undefined method |
◽️ Notice | 2 |
'array_search()' can be replaced with 'in_array()' call |
◽️ Notice | 1 |
Condition inside logical expression checked by subsequent condition |
◽️ Notice | 1 |
Parameters number mismatch declaration |
◽️ Notice | 1 |
Missing 'break' statement |
◽️ Notice | 1 |
Unnecessary pass-by-ref |
◽️ Notice | 1 |
Redundant catch clause |
◽️ Notice | 1 |
Redundant method override |
◽️ Notice | 1 |
Usage 'assertCount/assertSameSize' methods instead of assertEquals |
◽️ Notice | 1 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report
Detected 26 dependencies
Third-party software list
This page lists the third-party software dependencies used in project
| Dependency | Version | Licenses |
|---|---|---|
| dayspring-tech/propel1 | 2.0.0 | MIT |
| phing/phing | 2.17.4 | LGPL-3.0-only |
| psr/cache | 3.0.0 | MIT |
| psr/container | 2.0.2 | MIT |
| psr/event-dispatcher | 1.0.0 | MIT |
| psr/log | 3.0.2 | MIT |
| symfony/cache-contracts | v3.5.1 | MIT |
| symfony/cache | v6.4.19 | MIT |
| symfony/config | v6.4.14 | MIT |
| symfony/dependency-injection | v6.4.19 | MIT |
| symfony/deprecation-contracts | v3.5.1 | MIT |
| symfony/error-handler | v6.4.19 | MIT |
| symfony/event-dispatcher-contracts | v3.5.1 | MIT |
| symfony/event-dispatcher | v6.4.13 | MIT |
| symfony/filesystem | v6.4.13 | MIT |
| symfony/finder | v6.4.17 | MIT |
| symfony/framework-bundle | v6.4.19 | MIT |
| symfony/http-foundation | v6.4.18 | MIT |
| symfony/http-kernel | v6.4.19 | MIT |
| symfony/polyfill-ctype | v1.31.0 | MIT |
| symfony/polyfill-mbstring | v1.31.0 | MIT |
| symfony/polyfill-php83 | v1.31.0 | MIT |
| symfony/routing | v6.4.18 | MIT |
| symfony/service-contracts | v3.5.1 | MIT |
| symfony/var-dumper | v6.4.18 | MIT |
| symfony/var-exporter | v6.4.19 | MIT |
Contact Qodana team
Contact us at qodana-support@jetbrains.com
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
Details
This result was published with Qodana GitHub Action
Annotations
Check notice on line 36 in Validator/Constraints/UniqueObjectValidator.php
github-actions / Qodana for PHP
'array_search()' can be replaced with 'in_array()' call
Can be replaced with '!in_array' call
Check warning on line 149 in Translation/ModelTranslation.php
github-actions / Qodana for PHP
Array to string conversion
Array to string conversion
Check notice on line 41 in DataFixtures/Loader/XmlDataLoader.php
github-actions / Qodana for PHP
Type cast is unnecessary
Type cast is redundant
Check notice on line 770 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Type cast is unnecessary
Type cast is redundant
Check notice on line 635 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 458 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 249 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 195 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 456 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 503 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 758 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 732 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 560 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 603 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 527 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 385 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 518 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 154 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 384 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 503 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 729 in Tests/Fixtures/Model/om/BaseBookPeer.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 244 in Tests/Fixtures/Model/om/BaseBookQuery.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 284 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 620 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class
Check notice on line 326 in Tests/Fixtures/Model/om/BaseBook.php
github-actions / Qodana for PHP
Class constant referenced via child class
Constant from base class '\\Propel\\Bundle\\PropelBundle\\Tests\\Fixtures\\Model\\om\\BaseBookPeer' referenced via child class