From caa61b43865f65f711d4b51cb03a7e661b3621fa Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Thu, 1 Oct 2026 11:51:01 +0200 Subject: [PATCH] Make PHPStan a usable signal - Add phpstan/phpstan-mockery so Mockery-based test doubles are understood. - Generate phpstan-baseline.neon capturing the 593 pre-existing level-9 errors so the analysis exits clean and flags only new regressions; the baseline is the burn-down backlog. - Add composer scripts (test, stan, cs, cs:fix); stan bakes in --memory-limit=1G to avoid the default 128M OOM. --- composer.json | 7 +- phpstan-baseline.neon | 1136 +++++++++++++++++++++++++++++++++++++++++ phpstan.neon | 4 + 3 files changed, 1146 insertions(+), 1 deletion(-) create mode 100644 phpstan-baseline.neon diff --git a/composer.json b/composer.json index 609f6ce..9eccb3b 100644 --- a/composer.json +++ b/composer.json @@ -54,6 +54,7 @@ "mockery/mockery": "^1.2.3", "phpunit/phpunit": "~5.5|^9.0", "phpstan/phpstan": "^1.4", + "phpstan/phpstan-mockery": "^1.1", "squizlabs/php_codesniffer": "^3.9", "friendsofphp/php-cs-fixer": "^3.3", "symfony/var-dumper": "^7.0", @@ -63,7 +64,11 @@ "post-install-cmd": [ ], "post-update-cmd": [ - ] + ], + "test": "phpunit", + "stan": "phpstan analyse --memory-limit=1G", + "cs": "php-cs-fixer fix --dry-run --diff", + "cs:fix": "php-cs-fixer fix" }, "bin": [ "valet" diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..7a23b58 --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,1136 @@ +parameters: + ignoreErrors: + - + message: "#^Method Valet\\\\Configuration\\:\\:read\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Configuration.php + + - + message: "#^Method Valet\\\\Configuration\\:\\:read\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: cli/Valet/Configuration.php + + - + message: "#^Method Valet\\\\Configuration\\:\\:updateKey\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Configuration.php + + - + message: "#^Method Valet\\\\Configuration\\:\\:updateKey\\(\\) should return array but returns mixed\\.$#" + count: 1 + path: cli/Valet/Configuration.php + + - + message: "#^Parameter \\#1 \\$config of method Valet\\\\Configuration\\:\\:write\\(\\) expects array, mixed given\\.$#" + count: 3 + path: cli/Valet/Configuration.php + + - + message: "#^Parameter \\#1 \\$path of method Valet\\\\Filesystem\\:\\:isDir\\(\\) expects string, mixed given\\.$#" + count: 1 + path: cli/Valet/Configuration.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: cli/Valet/Configuration.php + + - + message: "#^Part \\$domain \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: cli/Valet/Configuration.php + + - + message: "#^Unable to resolve the template type TKey in call to function collect$#" + count: 3 + path: cli/Valet/Configuration.php + + - + message: "#^Unable to resolve the template type TValue in call to function collect$#" + count: 3 + path: cli/Valet/Configuration.php + + - + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#" + count: 1 + path: cli/Valet/DevTools.php + + - + message: "#^Method Valet\\\\Drivers\\\\Specific\\\\BedrockValetDriver\\:\\:forceTrailingSlash\\(\\) has no return type specified\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/BedrockValetDriver.php + + - + message: "#^Parameter \\#1 \\$string of function substr expects string, mixed given\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/BedrockValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\Specific\\\\DrupalValetDriver\\:\\:addSubdirectory\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/DrupalValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\Specific\\\\DrupalValetDriver\\:\\:possibleSubdirectories\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/DrupalValetDriver.php + + - + message: "#^Offset 'extension' does not exist on array\\{dirname\\?\\: string, basename\\: string, extension\\?\\: string, filename\\: string\\}\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/DrupalValetDriver.php + + - + message: "#^Part \\$sitePath \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/DrupalValetDriver.php + + - + message: "#^Variable \\$indexPath might not be defined\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/KirbyValetDriver.php + + - + message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|null given\\.$#" + count: 2 + path: cli/Valet/Drivers/Specific/Magento2ValetDriver.php + + - + message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|null given\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/Magento2ValetDriver.php + + - + message: "#^Cannot access offset 'path' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int\\<0, 65535\\>, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/StatamicV2ValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\Specific\\\\StatamicV2ValetDriver\\:\\:getLocales\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/StatamicV2ValetDriver.php + + - + message: "#^Variable \\$indexPath might not be defined\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/StatamicV2ValetDriver.php + + - + message: "#^Cannot access offset 'path' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int\\<0, 65535\\>, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/StatamicValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\Specific\\\\StatamicValetDriver\\:\\:frontControllerPath\\(\\) should return string but returns string\\|null\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/StatamicValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\Specific\\\\StatamicValetDriver\\:\\:getStaticPath\\(\\) has no return type specified\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/StatamicValetDriver.php + + - + message: "#^Parameter \\#1 \\$uri of method Valet\\\\Drivers\\\\Specific\\\\Typo3ValetDriver\\:\\:isAccessAuthorized\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/Typo3ValetDriver.php + + - + message: "#^Property Valet\\\\Drivers\\\\Specific\\\\Typo3ValetDriver\\:\\:\\$documentRoot has no type specified\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/Typo3ValetDriver.php + + - + message: "#^Property Valet\\\\Drivers\\\\Specific\\\\Typo3ValetDriver\\:\\:\\$forbiddenUriPatterns has no type specified\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/Typo3ValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\Specific\\\\WordPressValetDriver\\:\\:forceTrailingSlash\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/WordPressValetDriver.php + + - + message: "#^Parameter \\#1 \\$string of function substr expects string, mixed given\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/WordPressValetDriver.php + + - + message: "#^Parameter \\#3 \\$uri of method Valet\\\\Drivers\\\\BasicValetDriver\\:\\:frontControllerPath\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: cli/Valet/Drivers/Specific/WordPressValetDriver.php + + - + message: "#^Cannot access offset 'require' on mixed\\.$#" + count: 1 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Cannot access offset 0 on mixed\\.$#" + count: 2 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Cannot access offset string on mixed\\.$#" + count: 1 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Instantiated class LocalValetDriver not found\\.$#" + count: 1 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\ValetDriver\\:\\:customDrivers\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\ValetDriver\\:\\:driversIn\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Method Valet\\\\Drivers\\\\ValetDriver\\:\\:specificDrivers\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" + count: 1 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Parameter \\#1 \\$path of function basename expects string, mixed given\\.$#" + count: 1 + path: cli/Valet/Drivers/ValetDriver.php + + - + message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#" + count: 1 + path: cli/Valet/Facades/Facade.php + + - + message: "#^Instanceof between array\\|string and Traversable will always evaluate to false\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Method Valet\\\\Filesystem\\:\\:get\\(\\) should return string but returns string\\|false\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Method Valet\\\\Filesystem\\:\\:put\\(\\) should return string but returns int\\<0, max\\>\\|false\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Method Valet\\\\Filesystem\\:\\:readLink\\(\\) should return string but returns string\\|false\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Method Valet\\\\Filesystem\\:\\:realpath\\(\\) should return string but returns string\\|false\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Method Valet\\\\Filesystem\\:\\:scandir\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Method Valet\\\\Filesystem\\:\\:toIterator\\(\\) return type has no value type specified in iterable type Traversable\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Parameter \\#1 \\$filename of function is_link expects string, string\\|false given\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Parameter \\#1 \\$path of function readlink expects string, string\\|false given\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Parameter \\#1 \\$value of function collect expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\\\|iterable\\\\|null, array\\\\|false given\\.$#" + count: 1 + path: cli/Valet/Filesystem.php + + - + message: "#^Part \\$domain \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 3 + path: cli/Valet/Mailpit.php + + - + message: "#^Cannot call method execute\\(\\) on bool\\|PDOStatement\\|null\\.$#" + count: 1 + path: cli/Valet/Mysql.php + + - + message: "#^Cannot call method fetchAll\\(\\) on PDOStatement\\|true\\.$#" + count: 1 + path: cli/Valet/Mysql.php + + - + message: "#^Cannot call method rowCount\\(\\) on bool\\|PDOStatement\\|null\\.$#" + count: 1 + path: cli/Valet/Mysql.php + + - + message: "#^Method Valet\\\\Mysql\\:\\:exportDatabase\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Mysql.php + + - + message: "#^Method Valet\\\\Mysql\\:\\:getDatabases\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Mysql.php + + - + message: "#^Method Valet\\\\Mysql\\:\\:getSystemDatabases\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Mysql.php + + - + message: "#^Method Valet\\\\Nginx\\:\\:configuredSites\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#" + count: 1 + path: cli/Valet/Nginx.php + + - + message: "#^Parameter \\#1 \\$oldDomain of method Valet\\\\SiteSecure\\:\\:reSecureForNewDomain\\(\\) expects string, mixed given\\.$#" + count: 1 + path: cli/Valet/Nginx.php + + - + message: "#^Parameter \\#2 \\$domain of method Valet\\\\SiteSecure\\:\\:reSecureForNewDomain\\(\\) expects string, mixed given\\.$#" + count: 1 + path: cli/Valet/Nginx.php + + - + message: "#^Method Valet\\\\Ngrok\\:\\:currentTunnelUrl\\(\\) should return string\\|null but returns mixed\\.$#" + count: 1 + path: cli/Valet/Ngrok.php + + - + message: "#^Constant Valet\\\\PackageManagers\\\\Apt\\:\\:PHP_FPM_PATTERN_BY_VERSION type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Apt.php + + - + message: "#^Method Valet\\\\PackageManagers\\\\Apt\\:\\:packages\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Apt.php + + - + message: "#^Offset string does not exist on array\\{\\}\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Apt.php + + - + message: "#^Offset string on array\\{\\} in empty\\(\\) does not exist\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Apt.php + + - + message: "#^Constant Valet\\\\PackageManagers\\\\Dnf\\:\\:PHP_FPM_PATTERN_BY_VERSION type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Dnf.php + + - + message: "#^Constant Valet\\\\PackageManagers\\\\Eopkg\\:\\:PHP_FPM_PATTERN_BY_VERSION type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Eopkg.php + + - + message: "#^Method Valet\\\\PackageManagers\\\\Eopkg\\:\\:packages\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Eopkg.php + + - + message: "#^Offset string does not exist on array\\{\\}\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Eopkg.php + + - + message: "#^Offset string on array\\{\\} in empty\\(\\) does not exist\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Eopkg.php + + - + message: "#^Constant Valet\\\\PackageManagers\\\\PackageKit\\:\\:PHP_FPM_PATTERN_BY_VERSION type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/PackageKit.php + + - + message: "#^Method Valet\\\\PackageManagers\\\\PackageKit\\:\\:packages\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/PackageKit.php + + - + message: "#^Offset string does not exist on array\\{\\}\\.$#" + count: 1 + path: cli/Valet/PackageManagers/PackageKit.php + + - + message: "#^Offset string on array\\{\\} in empty\\(\\) does not exist\\.$#" + count: 1 + path: cli/Valet/PackageManagers/PackageKit.php + + - + message: "#^Constant Valet\\\\PackageManagers\\\\Pacman\\:\\:PHP_FPM_PATTERN_BY_VERSION type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Pacman.php + + - + message: "#^Method Valet\\\\PackageManagers\\\\Pacman\\:\\:packages\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Pacman.php + + - + message: "#^Parameter \\#2 \\$replace of function str_replace expects array\\|string, string\\|null given\\.$#" + count: 2 + path: cli/Valet/PackageManagers/Pacman.php + + - + message: "#^Constant Valet\\\\PackageManagers\\\\Yum\\:\\:PHP_FPM_PATTERN_BY_VERSION type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Yum.php + + - + message: "#^Offset string does not exist on array\\{\\}\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Yum.php + + - + message: "#^Offset string on array\\{\\} in empty\\(\\) does not exist\\.$#" + count: 1 + path: cli/Valet/PackageManagers/Yum.php + + - + message: "#^Method Valet\\\\PhpFpm\\:\\:getCurrentVersion\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: cli/Valet/PhpFpm.php + + - + message: "#^Method Valet\\\\PhpFpm\\:\\:validateIsolationVersion\\(\\) is unused\\.$#" + count: 1 + path: cli/Valet/PhpFpm.php + + - + message: "#^Negated boolean expression is always false\\.$#" + count: 1 + path: cli/Valet/PhpFpm.php + + - + message: "#^Parameter \\#1 \\$version of method Valet\\\\PhpFpm\\:\\:serviceName\\(\\) expects string\\|null, mixed given\\.$#" + count: 3 + path: cli/Valet/PhpFpm.php + + - + message: "#^Parameter \\#2 \\$contents of method Valet\\\\Filesystem\\:\\:put\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: cli/Valet/PhpFpm.php + + - + message: "#^Variable \\$confDir in PHPDoc tag @var does not exist\\.$#" + count: 1 + path: cli/Valet/PhpFpm.php + + - + message: "#^Method Valet\\\\Server\\:\\:allowWildcardDnsDomains\\(\\) should return string but returns string\\|null\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Method Valet\\\\Server\\:\\:hostIsIpAddress\\(\\) should return bool but returns int\\|false\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Method Valet\\\\Server\\:\\:show404\\(\\) has no return type specified\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Method Valet\\\\Server\\:\\:showDirectoryListing\\(\\) has no return type specified\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Parameter \\#1 \\$array of function usort expects TArray of array\\, array\\\\|false given\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|null given\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Parameter \\#2 \\$array of function array_map expects array, array\\\\|false given\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|null given\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Property Valet\\\\Server\\:\\:\\$config type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Server.php + + - + message: "#^Method Valet\\\\ServiceManagers\\\\LinuxService\\:\\:getRealService\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: cli/Valet/ServiceManagers/LinuxService.php + + - + message: "#^Parameter \\#1 \\$value of function collect expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<\\(int\\|string\\), mixed\\>\\|iterable\\<\\(int\\|string\\), mixed\\>\\|null, string given\\.$#" + count: 1 + path: cli/Valet/ServiceManagers/LinuxService.php + + - + message: "#^Unable to resolve the template type TKey in call to function collect$#" + count: 1 + path: cli/Valet/ServiceManagers/LinuxService.php + + - + message: "#^Unable to resolve the template type TValue in call to function collect$#" + count: 1 + path: cli/Valet/ServiceManagers/LinuxService.php + + - + message: "#^Method Valet\\\\ServiceManagers\\\\Systemd\\:\\:getRealService\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: cli/Valet/ServiceManagers/Systemd.php + + - + message: "#^Parameter \\#1 \\$callback of method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:first\\(\\) expects \\(callable\\(mixed, int\\|string\\)\\: bool\\)\\|null, Closure\\(mixed\\)\\: \\(int\\<0, max\\>\\|false\\) given\\.$#" + count: 1 + path: cli/Valet/ServiceManagers/Systemd.php + + - + message: "#^Parameter \\#1 \\$value of function collect expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<\\(int\\|string\\), mixed\\>\\|iterable\\<\\(int\\|string\\), mixed\\>\\|null, string given\\.$#" + count: 1 + path: cli/Valet/ServiceManagers/Systemd.php + + - + message: "#^Part \\$service \\(mixed\\) of encapsed string cannot be cast to string\\.$#" + count: 1 + path: cli/Valet/ServiceManagers/Systemd.php + + - + message: "#^Unable to resolve the template type TKey in call to function collect$#" + count: 1 + path: cli/Valet/ServiceManagers/Systemd.php + + - + message: "#^Unable to resolve the template type TValue in call to function collect$#" + count: 1 + path: cli/Valet/ServiceManagers/Systemd.php + + - + message: "#^Method Valet\\\\SiteIsolate\\:\\:isolatedDirectories\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#" + count: 1 + path: cli/Valet/SiteIsolate.php + + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: string\\}\\.$#" + count: 1 + path: cli/Valet/SiteIsolate.php + + - + message: "#^Parameter \\#1 \\$file of method Valet\\\\SiteIsolate\\:\\:nginxPath\\(\\) expects string\\|null, mixed given\\.$#" + count: 1 + path: cli/Valet/SiteIsolate.php + + - + message: "#^Parameter \\#1 \\$key of method Illuminate\\\\Support\\\\Collection\\\\:\\:contains\\(\\) expects \\(callable\\(string, int\\)\\: bool\\)\\|string, mixed given\\.$#" + count: 1 + path: cli/Valet/SiteIsolate.php + + - + message: "#^Parameter \\#1 \\$url of method Valet\\\\SiteIsolate\\:\\:isolatedPhpVersion\\(\\) expects string, mixed given\\.$#" + count: 1 + path: cli/Valet/SiteIsolate.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: cli/Valet/SiteIsolate.php + + - + message: "#^Anonymous function has an unused use \\$domain\\.$#" + count: 1 + path: cli/Valet/SiteProxy.php + + - + message: "#^Method Valet\\\\SiteProxy\\:\\:proxies\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#" + count: 1 + path: cli/Valet/SiteProxy.php + + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: string\\}\\.$#" + count: 1 + path: cli/Valet/SiteSecure.php + + - + message: "#^Cannot call method isAvailable\\(\\) on mixed\\.$#" + count: 2 + path: cli/Valet/Valet.php + + - + message: "#^Method Valet\\\\Valet\\:\\:getAvailablePackageManager\\(\\) should return class\\-string but returns string\\.$#" + count: 1 + path: cli/Valet/Valet.php + + - + message: "#^Method Valet\\\\Valet\\:\\:getAvailableServiceManager\\(\\) should return class\\-string but returns string\\.$#" + count: 1 + path: cli/Valet/Valet.php + + - + message: "#^Method Valet\\\\Valet\\:\\:getRunningFpmVersions\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: cli/Valet/Valet.php + + - + message: "#^Parameter \\#1 \\$domain of static method Valet\\\\Facades\\\\DnsMasq\\:\\:install\\(\\) expects string, mixed given\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Parameter \\#1 \\$oldDomain of static method Valet\\\\Facades\\\\SiteSecure\\:\\:reSecureForNewDomain\\(\\) expects string, mixed given\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Parameter \\#1 \\$path of function basename expects string, string\\|false given\\.$#" + count: 8 + path: cli/app.php + + - + message: "#^Parameter \\#1 \\$sitePath of static method Valet\\\\Drivers\\\\ValetDriver\\:\\:assign\\(\\) expects string, string\\|false given\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Parameter \\#1 \\$target of static method Valet\\\\Facades\\\\SiteLink\\:\\:link\\(\\) expects string, string\\|false given\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Parameter \\#2 \\$array of function array_map expects array, mixed given\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Static method Valet\\\\Facades\\\\Mysql\\:\\:install\\(\\) invoked with 1 parameter, 0 required\\.$#" + count: 1 + path: cli/app.php + + - + message: "#^Function Valet\\\\strArrayReplace\\(\\) has parameter \\$searchAndReplace with no value type specified in iterable type array\\.$#" + count: 1 + path: cli/includes/helpers.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:databaseNamesProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:directoryProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:invalidProxyDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:invalidUnproxyDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:isolateDirectoryDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:nginxPortDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:nginxProxyDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:nginxUnproxyDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:parkedDirectoryProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:secureNginxDomainProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:securedNginxDomainProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:unIsolateDirectoryDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Method Valet\\\\Tests\\\\CliTest\\:\\:unsecureNginxDomainProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/CliTest.php + + - + message: "#^Parameter \\#1 \\$path of function basename expects string, string\\|false given\\.$#" + count: 2 + path: tests/CliTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldNotReceive\\(\\)\\.$#" + count: 5 + path: tests/Unit/ConfigurationTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 37 + path: tests/Unit/ConfigurationTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\ConfigurationTest\\:\\:configDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/ConfigurationTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\ConfigurationTest\\:\\:defaultConfig\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/ConfigurationTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\ConfigurationTest\\:\\:domainDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/ConfigurationTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\ConfigurationTest\\:\\:updateConfigDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/ConfigurationTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldNotReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/DevToolsTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 11 + path: tests/Unit/DevToolsTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 4 + path: tests/Unit/DnsMasqTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\PackageManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/DnsMasqTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 13 + path: tests/Unit/DnsMasqTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 27 + path: tests/Unit/DnsMasqTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/MailpitTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/MailpitTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 10 + path: tests/Unit/MailpitTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 5 + path: tests/Unit/MailpitTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\SiteProxy\\:\\:shouldReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/MailpitTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\SiteSecure\\:\\:shouldReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/MailpitTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/MysqlTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 4 + path: tests/Unit/MysqlTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\PackageManager\\:\\:shouldNotReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/MysqlTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\PackageManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 22 + path: tests/Unit/MysqlTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager\\:\\:shouldNotReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/MysqlTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 4 + path: tests/Unit/MysqlTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\MysqlTest\\:\\:itWillNotOverrideWhenInstalled\\(\\) has no return type specified\\.$#" + count: 1 + path: tests/Unit/MysqlTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\MysqlTest\\:\\:itWillNotOverrideWhenMariaDbInstalled\\(\\) has no return type specified\\.$#" + count: 1 + path: tests/Unit/MysqlTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\MysqlTest\\:\\:packageDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/MysqlTest.php + + - + message: "#^Parameter \\#1 \\$pm of class Valet\\\\Mysql constructor expects Valet\\\\Contracts\\\\PackageManager, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\PackageManager given\\.$#" + count: 5 + path: tests/Unit/MysqlTest.php + + - + message: "#^Parameter \\#2 \\$sm of class Valet\\\\Mysql constructor expects Valet\\\\Contracts\\\\ServiceManager, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager given\\.$#" + count: 5 + path: tests/Unit/MysqlTest.php + + - + message: "#^Parameter \\#3 \\$cli of class Valet\\\\Mysql constructor expects Valet\\\\CommandLine, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine given\\.$#" + count: 5 + path: tests/Unit/MysqlTest.php + + - + message: "#^Parameter \\#4 \\$files of class Valet\\\\Mysql constructor expects Valet\\\\Filesystem, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem given\\.$#" + count: 5 + path: tests/Unit/MysqlTest.php + + - + message: "#^Parameter \\#5 \\$configuration of class Valet\\\\Mysql constructor expects Valet\\\\Configuration, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration given\\.$#" + count: 5 + path: tests/Unit/MysqlTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 3 + path: tests/Unit/NginxTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 3 + path: tests/Unit/NginxTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\PackageManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/NginxTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 9 + path: tests/Unit/NginxTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 31 + path: tests/Unit/NginxTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\SiteSecure\\:\\:shouldReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/NginxTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/NgrokTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldNotReceive\\(\\)\\.$#" + count: 3 + path: tests/Unit/NgrokTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 5 + path: tests/Unit/NgrokTest.php + + - + message: "#^Call to an undefined static method Valet\\\\Facades\\\\Filesystem\\:\\:ensureDirExists\\(\\)\\.$#" + count: 1 + path: tests/Unit/NgrokTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\:\\:once\\(\\)\\.$#" + count: 2 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 3 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\PackageManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 15 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager\\:\\:expects\\(\\)\\.$#" + count: 2 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 10 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 13 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Nginx\\:\\:shouldReceive\\(\\)\\.$#" + count: 3 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\PhpFpmTest\\:\\:deprecatedVersionDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\PhpFpmTest\\:\\:executableVersionProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\PhpFpmTest\\:\\:invalidVersionProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\PhpFpmTest\\:\\:socketFileVersionProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\PhpFpmTest\\:\\:versionDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\PhpFpmTest\\:\\:versionProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/PhpFpmTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldNotReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/RequirementsTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/RequirementsTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 6 + path: tests/Unit/SiteIsolateTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\PackageManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/SiteIsolateTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 14 + path: tests/Unit/SiteIsolateTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Site\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/SiteIsolateTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\SiteSecure\\:\\:shouldReceive\\(\\)\\.$#" + count: 3 + path: tests/Unit/SiteIsolateTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 4 + path: tests/Unit/SiteLinkTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldNotReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/SiteLinkTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 8 + path: tests/Unit/SiteLinkTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\SiteSecure\\:\\:shouldReceive\\(\\)\\.$#" + count: 1 + path: tests/Unit/SiteLinkTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/SiteProxyTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 5 + path: tests/Unit/SiteProxyTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\SiteSecure\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/SiteProxyTest.php + + - + message: "#^Call to an undefined method Mockery\\\\MockInterface\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 9 + path: tests/Unit/SiteSecureTest.php + + - + message: "#^Call to an undefined method Mockery\\\\MockInterface\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 4 + path: tests/Unit/SiteSecureTest.php + + - + message: "#^Call to an undefined method Mockery\\\\MockInterface\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 22 + path: tests/Unit/SiteSecureTest.php + + - + message: "#^Parameter \\#4 \\$pm of class Valet\\\\SiteSecure constructor expects Valet\\\\Contracts\\\\PackageManager, mixed given\\.$#" + count: 1 + path: tests/Unit/SiteSecureTest.php + + - + message: "#^Property Unit\\\\SiteSecureTest\\:\\:\\$pm \\(Valet\\\\Contracts\\\\PackageManager\\) does not accept mixed\\.$#" + count: 1 + path: tests/Unit/SiteSecureTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Configuration\\:\\:shouldReceive\\(\\)\\.$#" + count: 3 + path: tests/Unit/SiteTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 12 + path: tests/Unit/SiteTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\PackageManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 7 + path: tests/Unit/ValetRedisTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Contracts\\\\ServiceManager\\:\\:shouldReceive\\(\\)\\.$#" + count: 4 + path: tests/Unit/ValetRedisTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\CommandLine\\:\\:shouldReceive\\(\\)\\.$#" + count: 2 + path: tests/Unit/ValetTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Valet\\\\Filesystem\\:\\:shouldReceive\\(\\)\\.$#" + count: 6 + path: tests/Unit/ValetTest.php + + - + message: "#^Method Valet\\\\Tests\\\\Unit\\\\ValetTest\\:\\:versionDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: tests/Unit/ValetTest.php diff --git a/phpstan.neon b/phpstan.neon index 4ed4682..6031de2 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,3 +1,7 @@ +includes: + - vendor/phpstan/phpstan-mockery/extension.neon + - phpstan-baseline.neon + parameters: level: 9 paths: