Skip to content

Commit 3287ccb

Browse files
committed
PHP 8.5 removed constants which error now
1 parent 72b066e commit 3287ccb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/Libraries/Core/ExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static function phpErrorName(int $errno): string
163163
case \E_USER_ERROR: return 'E_USER_ERROR'; /* 256 */
164164
case \E_USER_WARNING: return 'E_USER_WARNING'; /* 512 */
165165
case \E_USER_NOTICE: return 'E_USER_NOTICE'; /* 1024 */
166-
case \E_STRICT: return 'E_STRICT'; /* 2048 */
166+
//case \E_STRICT: return 'E_STRICT'; /* 2048 */
167167
case \E_RECOVERABLE_ERROR: return 'E_RECOVERABLE_ERROR'; /* 4096 */
168168
case \E_DEPRECATED: return 'E_DEPRECATED'; /* 8192 */
169169
case \E_USER_DEPRECATED: return 'E_USER_DEPRECATED'; /* 16384 */

src/Libraries/Db/MariaDb.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use \BNETDocs\Libraries\Core\Config;
66
use \PDO;
7+
use \Pdo\Mysql;
78

89
class MariaDb extends PDO
910
{
@@ -24,7 +25,7 @@ public function __construct(string $driver = 'mysql')
2425

2526
parent::__construct($dsn, $username, $password, [
2627
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
27-
PDO::MYSQL_ATTR_INIT_COMMAND => \sprintf('SET NAMES \'%s\'', $character_set),
28+
Mysql::ATTR_INIT_COMMAND => \sprintf('SET NAMES \'%s\'', $character_set),
2829
]);
2930
}
3031

0 commit comments

Comments
 (0)