Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Oct 14, 2021

@ondrejmirtes
Copy link
Member

The build failed - needs a fix in PHPStan.

@staabm
Copy link
Contributor Author

staabm commented Oct 15, 2021

sorry didn't realize the build was broken. fixed now.

@ondrejmirtes
Copy link
Member

Better fix would be to also use positive-int as the constructor type.

@staabm
Copy link
Contributor Author

staabm commented Nov 3, 2021

adjusted as suggested

@staabm staabm changed the title More precise array_chunk signature More precise array_chunk signature Dec 22, 2021
@staabm
Copy link
Contributor Author

staabm commented Dec 22, 2021

rebased (not sure what I should do with the remaining 3rd party error):

 ------ ----------------------------------------------------------------------- 
  Line   src/pocketmine/command/defaults/HelpCommand.php                        
 ------ ----------------------------------------------------------------------- 
  84     Parameter #2 $length of function array_chunk expects int<1, max>, int  
         given.                                                                 
 ------ ----------------------------------------------------------------------- 

fix Scheduler

fix cs

type __construct()

Update Scheduler.php

adjust test
@ondrejmirtes ondrejmirtes merged commit c013219 into phpstan:master Jan 31, 2022
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the patch-2 branch April 4, 2022 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants