Skip to content

Commit 906e3ef

Browse files
authored
level 2 (#422)
1 parent 3930195 commit 906e3ef

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 1
2+
level: 2
33
paths:
44
- resources
55
- test

resources/lib/UnityHTTPD.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ public static function gracefulDie(
9898
self::alert("$user_message_title -- $user_message_body");
9999
echo "<h1>$user_message_title</h1><p>$user_message_body</p>";
100100
// display_errors should not be enabled in production
101-
if (!is_null($error) && ini_get("display_errors") === "1") {
101+
if (
102+
!is_null($error) &&
103+
ini_get("display_errors") === "1" &&
104+
property_exists($error, "xdebug_message")
105+
) {
102106
echo "<table>";
103107
echo $error->xdebug_message;
104108
echo "</table>";

resources/lib/phpopenldaper

0 commit comments

Comments
 (0)