Skip to content

Commit

Permalink
Merge pull request #37500 from owncloud/fix-phpstan-20200609
Browse files Browse the repository at this point in the history
[Tests-Only] Fix phpstan settings for 0.12.27
  • Loading branch information
individual-it authored Jun 9, 2020
2 parents 285558e + ae83901 commit b817b59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion lib/private/legacy/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public function __construct($imageRef = null, $logger = null) {
}

if (\OC_Util::fileInfoLoaded()) {
/* @phpstan-ignore-next-line */
$this->fileInfo = new finfo(FILEINFO_MIME_TYPE);
}

Expand Down
12 changes: 0 additions & 12 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,16 @@ parameters:
excludes_analyse:
- %currentWorkingDirectory%/core/templates/*
- %currentWorkingDirectory%/core/routes.php
- %currentWorkingDirectory%/core/register_command.php
- %currentWorkingDirectory%/core/ajax/update.php
- %currentWorkingDirectory%/core/ajax/share.php
- %currentWorkingDirectory%/apps/*/tests*
- %currentWorkingDirectory%/apps/*/templates/*
- %currentWorkingDirectory%/apps/*/appinfo/routes.php
- %currentWorkingDirectory%/apps/*/composer/*
- %currentWorkingDirectory%/apps/*/3rdparty/*
- %currentWorkingDirectory%/apps/files_external/ajax/oauth2.php
- %currentWorkingDirectory%/apps/files_external/lib/Lib/Backend/DAV.php
- %currentWorkingDirectory%/apps/files_external/lib/Lib/Backend/Google.php
- %currentWorkingDirectory%/apps/files_external/lib/Lib/Backend/SMB.php
- %currentWorkingDirectory%/apps/files_external/lib/Lib/Backend/SMB_OC.php
- %currentWorkingDirectory%/apps/files_external/lib/Lib/Storage/Google.php
- %currentWorkingDirectory%/apps/files_external/lib/Lib/Storage/SMB.php
- %currentWorkingDirectory%/apps/files_external/3rdparty/aws-sdk-php/Symfony/Component/ClassLoader/Tests/Fixtures/Apc/fallback/Namespaced/FooBar.php
- %currentWorkingDirectory%/apps/files_sharing/ajax/shareinfo.php
- %currentWorkingDirectory%/settings/templates/*
- %currentWorkingDirectory%/settings/routes.php
# specific app excludes
# eventually move into app directories and use neon includes for better separation
- %currentWorkingDirectory%/apps/dav/bin
ignoreErrors:
- '#Undefined variable: \$OC_[a-zA-Z0-9\\_]+#'
- '#Undefined variable: \$vendor#'
Expand Down

0 comments on commit b817b59

Please sign in to comment.