Skip to content

🩹 Fix PHP 8.5 deprecation for PDO::MYSQL_ATTR_SSL_CA - #149

Merged
Log1x merged 1 commit into
laracord:nextfrom
rmobis:fix/php-85-pdo-mysql-attr-ssl-ca
Oct 21, 2026
Merged

Log1x merged 1 commit into
laracord:nextfrom
rmobis:fix/php-85-pdo-mysql-attr-ssl-ca

Conversation

@rmobis

@rmobis rmobis commented Oct 21, 2026 •

Copy link
Copy Markdown

Summary

Without this change, Laracord cannot boot on PHP 8.5. Loading config/database.php during provider registration emits a deprecation for PDO::MYSQL_ATTR_SSL_CA; Laravel's exception handler then tries to resolve log before it is bound, so early bootstrap commands such as package:discover fail with Target class [log] does not exist.

On PHP 8.5:

$ php laracord package:discover --ansi

In Container.php line 1124:

  Target class [log] does not exist.


In Container.php line 1122:

  Class "log" does not exist

Related to the v3 work in #134.

Test plan

  • On PHP 8.5: php laracord package:discover --ansi succeeds (project is runnable)
  • On PHP 8.4 (or 8.2/8.3): same command still succeeds
  • Confirm no Constant PDO::MYSQL_ATTR_SSL_CA is deprecated notice when the database config is loaded

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
@Log1x
Log1x merged commit 6a681be into laracord:next Oct 21, 2026
@Log1x

Log1x commented Oct 21, 2026

Copy link
Copy Markdown
Member

thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants