-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix most PhanTypeMismatchDimAssignment notices (#28739)
* Qual: Add typing to fix PhanTypeMismatchDimAssignment notice * Fix: Initialise array for code in somme * Qual: Update type hint for argument in _Set_Format * Qual: Update type hint for childtables * Qual: Add typing to attributes * Qual: Add typing for _msgContent * Qual: Suppress PhanTypeMismatchDimAssignment * Qual: Add typing for liste * Qual: Add typing to fields * Qual: Add typing hint for $objMod * Qual: Modify assignment of array with bool keys for phan typing Demonstration: ``` php -r '$a=[true=>"yes",false=>"no"];var_dump($a);' # Result demonstrates bool keys are converted to int. Command line code:1: array(2) { [1] => string(3) "yes" [0] => string(2) "no" } ``` * Qual: Add typing hint to indicate value is not null * Force non-null type on $paramname * Qual: Add typing hint to getCats() * Update inc.php --------- Co-authored-by: Laurent Destailleur <[email protected]>
- Loading branch information
Showing
14 changed files
with
98 additions
and
84 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
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
Oops, something went wrong.