|
703 | 703 | 'count' => 1, |
704 | 704 | 'path' => __DIR__ . '/src/Auth.php', |
705 | 705 | ]; |
706 | | -$ignoreErrors[] = [ |
707 | | - 'message' => '#^Method Auth\\:\\:login\\(\\) should return bool but returns int\\.$#', |
708 | | - 'identifier' => 'return.type', |
709 | | - 'count' => 1, |
710 | | - 'path' => __DIR__ . '/src/Auth.php', |
711 | | -]; |
712 | 706 | $ignoreErrors[] = [ |
713 | 707 | 'message' => '#^Negated boolean expression is always true\\.$#', |
714 | 708 | 'identifier' => 'booleanNot.alwaysTrue', |
|
727 | 721 | 'count' => 1, |
728 | 722 | 'path' => __DIR__ . '/src/Auth.php', |
729 | 723 | ]; |
730 | | -$ignoreErrors[] = [ |
731 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept bool\\.$#', |
732 | | - 'identifier' => 'assign.propertyType', |
733 | | - 'count' => 1, |
734 | | - 'path' => __DIR__ . '/src/Auth.php', |
735 | | -]; |
736 | | -$ignoreErrors[] = [ |
737 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept false\\.$#', |
738 | | - 'identifier' => 'assign.propertyType', |
739 | | - 'count' => 5, |
740 | | - 'path' => __DIR__ . '/src/Auth.php', |
741 | | -]; |
742 | | -$ignoreErrors[] = [ |
743 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept true\\.$#', |
744 | | - 'identifier' => 'assign.propertyType', |
745 | | - 'count' => 1, |
746 | | - 'path' => __DIR__ . '/src/Auth.php', |
747 | | -]; |
748 | | -$ignoreErrors[] = [ |
749 | | - 'message' => '#^Property Auth\\:\\:\\$password_expired \\(int\\) does not accept default value of type false\\.$#', |
750 | | - 'identifier' => 'property.defaultValue', |
751 | | - 'count' => 1, |
752 | | - 'path' => __DIR__ . '/src/Auth.php', |
753 | | -]; |
754 | | -$ignoreErrors[] = [ |
755 | | - 'message' => '#^Property Auth\\:\\:\\$user_present \\(int\\) does not accept bool\\.$#', |
756 | | - 'identifier' => 'assign.propertyType', |
757 | | - 'count' => 1, |
758 | | - 'path' => __DIR__ . '/src/Auth.php', |
759 | | -]; |
760 | 724 | $ignoreErrors[] = [ |
761 | 725 | 'message' => '#^Strict comparison using \\!\\=\\= between 2\\|3\\|4 and null will always evaluate to true\\.$#', |
762 | 726 | 'identifier' => 'notIdentical.alwaysTrue', |
|
805 | 769 | 'count' => 1, |
806 | 770 | 'path' => __DIR__ . '/src/AuthLDAP.php', |
807 | 771 | ]; |
808 | | -$ignoreErrors[] = [ |
809 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept false\\.$#', |
810 | | - 'identifier' => 'assign.propertyType', |
811 | | - 'count' => 1, |
812 | | - 'path' => __DIR__ . '/src/AuthLDAP.php', |
813 | | -]; |
814 | | -$ignoreErrors[] = [ |
815 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept true\\.$#', |
816 | | - 'identifier' => 'assign.propertyType', |
817 | | - 'count' => 1, |
818 | | - 'path' => __DIR__ . '/src/AuthLDAP.php', |
819 | | -]; |
820 | | -$ignoreErrors[] = [ |
821 | | - 'message' => '#^Property Auth\\:\\:\\$user_present \\(int\\) does not accept false\\.$#', |
822 | | - 'identifier' => 'assign.propertyType', |
823 | | - 'count' => 1, |
824 | | - 'path' => __DIR__ . '/src/AuthLDAP.php', |
825 | | -]; |
826 | | -$ignoreErrors[] = [ |
827 | | - 'message' => '#^Property Auth\\:\\:\\$user_present \\(int\\) does not accept true\\.$#', |
828 | | - 'identifier' => 'assign.propertyType', |
829 | | - 'count' => 2, |
830 | | - 'path' => __DIR__ . '/src/AuthLDAP.php', |
831 | | -]; |
832 | 772 | $ignoreErrors[] = [ |
833 | 773 | 'message' => '#^Strict comparison using \\!\\=\\= between mixed and null will always evaluate to true\\.$#', |
834 | 774 | 'identifier' => 'notIdentical.alwaysTrue', |
|
1699 | 1639 | 'count' => 1, |
1700 | 1640 | 'path' => __DIR__ . '/src/Console/Plugin/InstallCommand.php', |
1701 | 1641 | ]; |
1702 | | -$ignoreErrors[] = [ |
1703 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept true\\.$#', |
1704 | | - 'identifier' => 'assign.propertyType', |
1705 | | - 'count' => 1, |
1706 | | - 'path' => __DIR__ . '/src/Console/Plugin/InstallCommand.php', |
1707 | | -]; |
1708 | 1642 | $ignoreErrors[] = [ |
1709 | 1643 | 'message' => '#^Instanceof between DBmysql and DBmysql will always evaluate to true\\.$#', |
1710 | 1644 | 'identifier' => 'instanceof.alwaysTrue', |
|
4453 | 4387 | 'count' => 1, |
4454 | 4388 | 'path' => __DIR__ . '/src/SNMPCredential.php', |
4455 | 4389 | ]; |
4456 | | -$ignoreErrors[] = [ |
4457 | | - 'message' => '#^Call to function is_array\\(\\) with array will always evaluate to true\\.$#', |
4458 | | - 'identifier' => 'function.alreadyNarrowedType', |
4459 | | - 'count' => 2, |
4460 | | - 'path' => __DIR__ . '/src/SavedSearch.php', |
4461 | | -]; |
4462 | | -$ignoreErrors[] = [ |
4463 | | - 'message' => '#^Method SavedSearch\\:\\:croncountAll\\(\\) with return type void returns int but should not return anything\\.$#', |
4464 | | - 'identifier' => 'return.void', |
4465 | | - 'count' => 1, |
4466 | | - 'path' => __DIR__ . '/src/SavedSearch.php', |
4467 | | -]; |
4468 | | -$ignoreErrors[] = [ |
4469 | | - 'message' => '#^Return type \\(void\\) of method SavedSearch\\:\\:showForm\\(\\) should be compatible with return type \\(bool\\) of method CommonDBTM\\:\\:showForm\\(\\)$#', |
4470 | | - 'identifier' => 'method.childReturnType', |
4471 | | - 'count' => 1, |
4472 | | - 'path' => __DIR__ . '/src/SavedSearch.php', |
4473 | | -]; |
4474 | | -$ignoreErrors[] = [ |
4475 | | - 'message' => '#^Method SavedSearch_Alert\\:\\:showForSavedSearch\\(\\) with return type void returns false but should not return anything\\.$#', |
4476 | | - 'identifier' => 'return.void', |
4477 | | - 'count' => 1, |
4478 | | - 'path' => __DIR__ . '/src/SavedSearch_Alert.php', |
4479 | | -]; |
4480 | | -$ignoreErrors[] = [ |
4481 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept true\\.$#', |
4482 | | - 'identifier' => 'assign.propertyType', |
4483 | | - 'count' => 1, |
4484 | | - 'path' => __DIR__ . '/src/SavedSearch_Alert.php', |
4485 | | -]; |
4486 | | -$ignoreErrors[] = [ |
4487 | | - 'message' => '#^Unreachable statement \\- code above always terminates\\.$#', |
4488 | | - 'identifier' => 'deadCode.unreachable', |
4489 | | - 'count' => 1, |
4490 | | - 'path' => __DIR__ . '/src/SavedSearch_User.php', |
4491 | | -]; |
4492 | 4390 | $ignoreErrors[] = [ |
4493 | 4391 | 'message' => '#^Call to function is_array\\(\\) with array will always evaluate to true\\.$#', |
4494 | 4392 | 'identifier' => 'function.alreadyNarrowedType', |
|
4651 | 4549 | 'count' => 1, |
4652 | 4550 | 'path' => __DIR__ . '/src/Session.php', |
4653 | 4551 | ]; |
4654 | | -$ignoreErrors[] = [ |
4655 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept false\\.$#', |
4656 | | - 'identifier' => 'assign.propertyType', |
4657 | | - 'count' => 3, |
4658 | | - 'path' => __DIR__ . '/src/Session.php', |
4659 | | -]; |
4660 | | -$ignoreErrors[] = [ |
4661 | | - 'message' => '#^Property Auth\\:\\:\\$auth_succeded \\(int\\) does not accept true\\.$#', |
4662 | | - 'identifier' => 'assign.propertyType', |
4663 | | - 'count' => 3, |
4664 | | - 'path' => __DIR__ . '/src/Session.php', |
4665 | | -]; |
4666 | 4552 | $ignoreErrors[] = [ |
4667 | 4553 | 'message' => '#^Property Laminas\\\\I18n\\\\Translator\\\\Translator\\:\\:\\$cache \\(Laminas\\\\Cache\\\\Storage\\\\StorageInterface\\|null\\) does not accept Glpi\\\\Cache\\\\I18nCache\\|null\\.$#', |
4668 | 4554 | 'identifier' => 'assign.propertyType', |
|
0 commit comments