:octocat: reintroducing phan because phpstan keeps making trouble

This commit is contained in:
smiley
2025-07-19 23:29:41 +02:00
parent 5477e121d3
commit bf34b46c57
21 changed files with 6853 additions and 13 deletions
+2
View File
@@ -186,6 +186,7 @@ class QRMatrix{
* Returns a boolean representation of the data matrix
*
* @return bool[][]
* @phan-suppress PhanTypeMismatchReturn
*/
public function getBooleanMatrix():array{
$matrix = $this->matrix;
@@ -594,6 +595,7 @@ class QRMatrix{
* Rotates the matrix by 90 degrees clock wise
*/
public function rotate90():static{
/** @phan-suppress-next-line PhanParamTooFewInternalUnpack */
$this->matrix = array_map((fn(int ...$a):array => array_reverse($a)), ...$this->matrix);
return $this;