From 4f159492c68767ee17b64ea254db531addd16740 Mon Sep 17 00:00:00 2001 From: Tim Kelty Date: Thu, 22 Feb 2024 20:46:52 -0500 Subject: [PATCH 1/2] Avoid file_exists deprecation warning file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated --- src/services/Webpack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/Webpack.php b/src/services/Webpack.php index d4c91151e11..f22afad55b4 100644 --- a/src/services/Webpack.php +++ b/src/services/Webpack.php @@ -128,7 +128,7 @@ private function _getEnvVars(string $class): ?array $envFile = $this->_getEnvFilePath($class); // TODO: Use DotEnv::parse() when we version is bumped. - $fileContents = file_exists($envFile) ? @file_get_contents($envFile) : null; + $fileContents = $envFile && file_exists($envFile) ? @file_get_contents($envFile) : null; if (!$fileContents) { return $this->_envFileVariables[$class] = []; From 4e917b3f18d650de243a5dc62fadf59e69800122 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Sun, 25 Feb 2024 19:53:18 -0800 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94bb1d67e4f..96c85209dcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Composer installation commands suggested by the Plugin Store now include a minimum version constraint. - Fixed a bug where it wasn’t possible to eager-load Matrix block revisions, or load them via GraphQL. ([#14448](https://github.com/craftcms/cms/issues/14448)) +- Fixed a PHP warning that could occur when publishing asset bundles on Dev Mode. ([#14455](https://github.com/craftcms/cms/pull/14455)) ## 4.7.4 - 2024-02-22