Skip to content

Commit aed6b1c

Browse files
committed
Drop support for PHP 7.3 and PHP 8.x ready.
1 parent 8f0fadc commit aed6b1c

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
22
php:
3-
- '7.3'
43
- '7.4'
4+
- '8.0'
55

66
install:
77
- composer self-update

src/CoreErrorLogger.php

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
abstract class CoreErrorLogger implements ErrorLogger
1414
{
1515
//--------------------------------------------------------------------------------------------------------------------
16-
protected static $errorNames = [E_COMPILE_ERROR => 'PHP Compile Error',
17-
E_COMPILE_WARNING => 'PHP Compile Warning',
18-
E_CORE_ERROR => 'PHP Core Error',
19-
E_CORE_WARNING => 'PHP Core Warning',
20-
E_DEPRECATED => 'PHP Deprecated Warning',
21-
E_ERROR => 'PHP Fatal Error',
22-
E_NOTICE => 'PHP Notice',
23-
E_PARSE => 'PHP Parse Error',
24-
E_RECOVERABLE_ERROR => 'PHP Recoverable Error',
25-
E_STRICT => 'PHP Strict Warning',
26-
E_USER_DEPRECATED => 'PHP User Deprecated Warning',
27-
E_USER_ERROR => 'PHP User Error',
28-
E_USER_NOTICE => 'PHP User Notice',
29-
E_USER_WARNING => 'PHP User Warning',
30-
E_WARNING => 'PHP Warning'];
16+
protected static array $errorNames = [E_COMPILE_ERROR => 'PHP Compile Error',
17+
E_COMPILE_WARNING => 'PHP Compile Warning',
18+
E_CORE_ERROR => 'PHP Core Error',
19+
E_CORE_WARNING => 'PHP Core Warning',
20+
E_DEPRECATED => 'PHP Deprecated Warning',
21+
E_ERROR => 'PHP Fatal Error',
22+
E_NOTICE => 'PHP Notice',
23+
E_PARSE => 'PHP Parse Error',
24+
E_RECOVERABLE_ERROR => 'PHP Recoverable Error',
25+
E_STRICT => 'PHP Strict Warning',
26+
E_USER_DEPRECATED => 'PHP User Deprecated Warning',
27+
E_USER_ERROR => 'PHP User Error',
28+
E_USER_NOTICE => 'PHP User Notice',
29+
E_USER_WARNING => 'PHP User Warning',
30+
E_WARNING => 'PHP Warning'];
3131

3232
/**
3333
* The output handle.
@@ -58,6 +58,7 @@ abstract class CoreErrorLogger implements ErrorLogger
5858
private $scalarReferences;
5959

6060
//--------------------------------------------------------------------------------------------------------------------
61+
6162
/**
6263
* Main function for dumping.
6364
*
@@ -213,8 +214,8 @@ private function argumentsToString(array $args): string
213214
$count++;
214215
if ($count>=7)
215216
{
216-
$out[$key] = '...';
217-
break;
217+
$out[$key] = '...';
218+
break;
218219
}
219220

220221
if (is_object($value))

src/ProductionErrorLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ProductionErrorLogger extends CoreErrorLogger
1414
*
1515
* @var string
1616
*/
17-
private $path;
17+
private string $path;
1818

1919
//--------------------------------------------------------------------------------------------------------------------
2020
/**

0 commit comments

Comments
 (0)