diff --git a/composer.json b/composer.json index 05a02402..7eaefb12 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "minimum-stability": "dev", "require": { "php": ">=5.5.0", - "symfony/var-dumper": "^3.4 || ^4.0 || ^5.0 || ^6.0" + "symfony/var-dumper": "^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0" }, "require-dev": { "cebe/markdown": "^1.1", diff --git a/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php b/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php index 42a69d84..b67f14bb 100644 --- a/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php +++ b/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php @@ -229,6 +229,7 @@ private function isStdOutATTY() } $stat = @fstat(STDOUT); + // Check if formatted mode is S_IFCHR return $stat ? 0020000 === ($stat['mode'] & 0170000) : false; } diff --git a/src/Phug/Util/Util/SandBox.php b/src/Phug/Util/Util/SandBox.php index fccbe5f8..2ae952af 100644 --- a/src/Phug/Util/Util/SandBox.php +++ b/src/Phug/Util/Util/SandBox.php @@ -33,6 +33,7 @@ public function __construct(callable $action, callable $errorInterceptor = null) return false; }); ob_start(); + // @codeCoverageIgnoreStart try { $this->result = $action();