Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update phpstan #5

Merged
merged 9 commits into from
Nov 29, 2020
Merged

Update phpstan #5

merged 9 commits into from
Nov 29, 2020

Conversation

franmomu
Copy link
Owner

No description provided.

@franmomu franmomu force-pushed the update_phpstan branch 2 times, most recently from 3e6c5e1 to a2de76e Compare November 4, 2020 02:28
The phpstan version used (0.10.x)  does not work with the error
formatter, this just removes it and it will be added in another
commit upgrading PHPStan.
@codecov-io
Copy link

Codecov Report

Merging #5 into 2.1.x will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              2.1.x       #5   +/-   ##
=========================================
  Coverage     82.12%   82.12%           
  Complexity     3835     3835           
=========================================
  Files           128      128           
  Lines          8630     8631    +1     
=========================================
+ Hits           7087     7088    +1     
  Misses         1543     1543           
Impacted Files Coverage Δ Complexity Δ
...ne/ODM/MongoDB/Mapping/Driver/AnnotationDriver.php 96.25% <100.00%> (+0.02%) 80.00 <0.00> (ø)

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 a625c8e...a2de76e. Read the comment docs.

malarzm and others added 2 commits November 4, 2020 09:05
An exception is thrown in the line above.
The current return types did not comply with PersistentCollectionInterface.
The phpdoc did not match the current return and arguments types.
The check removed was impossible to be true since the argument has a type
declaration.
The ReferencePrimer::parseDotSyntaxForPrimer had a case which there was
no return and the function has to return an array or Traversable.
At the beginning of the method, "$this->queuedInserts" is checked
if it is empty, if it is not, "$inserts" variable will always
have some value and the "if" removed is always true.
@franmomu franmomu merged commit 519403e into 2.1.x Nov 29, 2020
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.

3 participants