Skip to content

Commit

Permalink
Merge pull request #113 from phug-php/feature/symfony-7
Browse files Browse the repository at this point in the history
Allow Symfony 7
  • Loading branch information
kylekatarnls authored Mar 19, 2024
2 parents 44978d6 + 0f8a86a commit a9f35ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ private function isStdOutATTY()
}

$stat = @fstat(STDOUT);

// Check if formatted mode is S_IFCHR
return $stat ? 0020000 === ($stat['mode'] & 0170000) : false;
}
Expand Down
1 change: 1 addition & 0 deletions src/Phug/Util/Util/SandBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct(callable $action, callable $errorInterceptor = null)
return false;
});
ob_start();

// @codeCoverageIgnoreStart
try {
$this->result = $action();
Expand Down

0 comments on commit a9f35ca

Please sign in to comment.