Skip to content

Run phpstan checks.#387

Merged
dereuromark merged 4 commits intomasterfrom
phpstan
Dec 2, 2017
Merged

Run phpstan checks.#387
dereuromark merged 4 commits intomasterfrom
phpstan

Conversation

@ADmad
Copy link
Copy Markdown
Member

@ADmad ADmad commented Dec 1, 2017

No description provided.

@markstory markstory added this to the 1.5.x milestone Dec 1, 2017
);

return $this->_stop();
$this->_stop();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might need this return for when stop is mocked. You could also use abort() instead.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Dec 1, 2017

Codecov Report

Merging #387 into master will increase coverage by 0.17%.
The diff coverage is 40%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #387      +/-   ##
============================================
+ Coverage     92.19%   92.37%   +0.17%     
  Complexity      672      672              
============================================
  Files            25       25              
  Lines          2205     2165      -40     
============================================
- Hits           2033     2000      -33     
+ Misses          172      165       -7
Impacted Files Coverage Δ Complexity Δ
src/Shell/Task/SimpleBakeTask.php 97.5% <ø> (-0.07%) 8 <0> (ø)
src/View/Helper/BakeHelper.php 100% <ø> (ø) 65 <0> (ø) ⬇️
src/Shell/BakeShell.php 72.86% <ø> (+0.34%) 38 <0> (ø) ⬇️
src/Shell/Task/TemplateTask.php 99.45% <ø> (+0.5%) 46 <0> (ø) ⬇️
src/Shell/Task/ModelTask.php 95.56% <0%> (+0.53%) 156 <0> (ø) ⬇️
src/Shell/Task/PluginTask.php 73.61% <0%> (-0.79%) 40 <0> (ø)
src/View/BakeView.php 98.24% <100%> (-0.04%) 16 <0> (ø)
src/Shell/Task/FixtureTask.php 93.08% <100%> (-0.07%) 68 <0> (ø)
src/Shell/Task/BakeTask.php 55% <0%> (-0.39%) 21% <0%> (ø)
... and 10 more

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 fd7b991...854112d. Read the comment docs.

@ADmad
Copy link
Copy Markdown
Member Author

ADmad commented Dec 2, 2017

@ondrejmirtes Is there a better way to deal with this error other than just ignoring it? The issue is caused by use of @property tag within description text.

@ondrejmirtes
Copy link
Copy Markdown

@ADmad Your problem is not unique, I encountered it in at least three other places. We'll try to ignore phpDocs in the middle of text descriptions, but for now, try to construct as specific regex as possible to ignore it (so that you don't ignore other valid errors).

@ADmad
Copy link
Copy Markdown
Member Author

ADmad commented Dec 2, 2017

This is good to go.

@dereuromark dereuromark merged commit 92cf687 into master Dec 2, 2017
);

return $this->_stop();
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Connections need to implement schemaCollection() to be used with bake.

and continue to use $db->schemaCollection(); :)

$this->err('Your database does not have any tables.');

return $this->_stop();
$this->abort('Your database does not have any tables.');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here ...

@dereuromark dereuromark deleted the phpstan branch December 2, 2017 15: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.

6 participants