Skip to content

Commit 4bc9ab9

Browse files
linux815linux815
andauthored
bcms-4.1-support-php-8-5
* add support PHP 8.5 * update composer.lock and package-lock * update CHANGELOG.md --------- Co-authored-by: linux815 <ivan.bazhenov@gmail.com>
1 parent 83d57d5 commit 4bc9ab9

8 files changed

Lines changed: 357 additions & 304 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
## История версий bCMS
99

10+
### bCMS 4 [4.1]
11+
12+
**Список изменений:**
13+
14+
1. Добавлена поддержка PHP 8.5
15+
2. Обновлены зависимости
16+
1017
### bCMS 4 [4.0.2]
1118

1219
**Список изменений:**

bcms/classes/Config/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
final class Version
66
{
7-
public const VERSION = '4.0.2';
7+
public const string VERSION = '4.1';
88
}

bcms/classes/Database/GhostModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919
USERNAME,
2020
PASSWORD,
2121
[
22-
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'",
22+
PDO\Mysql::ATTR_INIT_COMMAND => "SET NAMES 'UTF8'",
2323
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
2424
],
2525
);

bcms/classes/Database/NewsModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919
USERNAME,
2020
PASSWORD,
2121
[
22-
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'",
22+
PDO\Mysql::ATTR_INIT_COMMAND => "SET NAMES 'UTF8'",
2323
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
2424
],
2525
);

bcms/classes/Database/ReviewModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919
USERNAME,
2020
PASSWORD,
2121
[
22-
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'",
22+
PDO\Mysql::ATTR_INIT_COMMAND => "SET NAMES 'UTF8'",
2323
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
2424
],
2525
);

0 commit comments

Comments
 (0)