Skip to content

phpstan errors #460

Closed
Closed

Description

@phil-davis

https://github.com/phpstan/phpstan/releases/tag/1.4.10 was recently released and is automatically used in CI. It does more/better code analysis.

The latest phpstan is reporting:
https://drone.owncloud.com/owncloud/richdocuments/1842/3/4

Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Downloading phpstan/phpstan (1.4.10)
  - Installing phpstan/phpstan (1.4.10): Extracting archive
Generating autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!
php -d zend.enable_gc=0 vendor-bin/phpstan/vendor/bin/phpstan analyse --memory-limit=4G --configuration=./phpstan.neon --no-progress --level=5 appinfo lib
 ------ --------------------------------------- 
  Line   lib/Controller/DocumentController.php  
 ------ --------------------------------------- 
  1245   Right side of && is always true.       
 ------ --------------------------------------- 

 ------ --------------------------------- 
  Line   lib/Storage.php                  
 ------ --------------------------------- 
  167    Left side of && is always true.  
 ------ --------------------------------- 

 [ERROR] Found 2 errors                                                         

make: *** [test-php-phpstan] Error 1
Makefile:168: recipe for target 'test-php-phpstan' failed

Activity

  1. self-assigned this
    on Mar 17, 2022
  2. phil-davis commented on Mar 17, 2022

    @phil-davis
    ContributorAuthor

    PR #462 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions