Skip to content

Conversation

@rchavik
Copy link
Member

@rchavik rchavik commented Sep 16, 2017

Better UX

@ADmad
Copy link
Member

ADmad commented Sep 16, 2017

@rchavik
Copy link
Member Author

rchavik commented Sep 16, 2017

What is it talking about?

@ADmad
Copy link
Member

ADmad commented Sep 16, 2017

Problem is due to line 76 $this->commands = $this->getCommands();. getCommands() returns an array and you can use getIterator() on an array. So the code needs to account for the fact that $this->commands can be an array or \Cake\Console\CommandCollection instance. Also the typehint of $commands property needs to be updated.

@ADmad
Copy link
Member

ADmad commented Sep 16, 2017

Also there is currently no test coverage for line 76 or the getCommands() method.

@markstory markstory added this to the 3.5.3 milestone Sep 17, 2017
@rchavik rchavik force-pushed the 3.5-sorted-commands branch from 2af8562 to a931060 Compare September 17, 2017 05:38
@codecov-io
Copy link

codecov-io commented Sep 17, 2017

Codecov Report

Merging #11203 into master will increase coverage by <.01%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #11203      +/-   ##
============================================
+ Coverage     93.14%   93.15%   +<.01%     
  Complexity    12981    12981              
============================================
  Files           437      437              
  Lines         33623    33626       +3     
============================================
+ Hits          31318    31324       +6     
+ Misses         2305     2302       -3
Impacted Files Coverage Δ Complexity Δ
src/Shell/HelpShell.php 80.32% <83.33%> (+1.01%) 17 <0> (ø) ⬇️
src/Cache/CacheRegistry.php 100% <0%> (+4%) 11% <0%> (ø) ⬇️
src/Cache/CacheEngine.php 93.61% <0%> (+4.25%) 19% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b85ef39...a931060. Read the comment docs.

@rchavik
Copy link
Member Author

rchavik commented Sep 17, 2017

how about now, phpstan seems happy.

@markstory markstory merged commit a922ebd into master Sep 18, 2017
@markstory markstory deleted the 3.5-sorted-commands branch September 18, 2017 02:03
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.

5 participants