[PR #2205] Database PDO Constants update (fix deprecation warning) #2143

Open
opened 2026-02-26 03:33:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/koel/koel/pull/2205
Author: @SorviusN20
Created: 2/1/2026
Status: 🔄 Open

Base: masterHead: database-update-fix


📝 Commits (2)

  • 05887e4 fix(database): resolve deprecation warnings for PDO constants
  • 9bd8eef fix(database): resolve deprecation warnings for PDO constants

📊 Changes

3 files changed (+80 additions, -71 deletions)

View changed files

📝 CLAUDE.md (+74 -66)
📝 composer.json (+3 -3)
📝 config/database.php (+3 -2)

📄 Description

Description

When running Koel locally (with composer koel:init), the following errors appear above the login screen:
Screenshot 2026-02-01 at 19 01 20

Motivation

Screenshots (if applicable)

Checklist

  • I've tested my changes thoroughly and added tests where applicable
  • I've updated relevant documentation (if any)
  • My code follows the project's conventions

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/koel/koel/pull/2205 **Author:** [@SorviusN20](https://github.com/SorviusN20) **Created:** 2/1/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `database-update-fix` --- ### 📝 Commits (2) - [`05887e4`](https://github.com/koel/koel/commit/05887e4572289a08c2ec734996d24eeafce721de) fix(database): resolve deprecation warnings for PDO constants - [`9bd8eef`](https://github.com/koel/koel/commit/9bd8eefdc05dd6a10c2a7072786ea5fcd350eb14) fix(database): resolve deprecation warnings for PDO constants ### 📊 Changes **3 files changed** (+80 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `CLAUDE.md` (+74 -66) 📝 `composer.json` (+3 -3) 📝 `config/database.php` (+3 -2) </details> ### 📄 Description <!-- Thank you for contributing to Koel! Please provide a clear description of your changes below. --> ## Description When running Koel locally (with `composer koel:init`), the following errors appear above the login screen: <img width="1217" height="926" alt="Screenshot 2026-02-01 at 19 01 20" src="https://github.com/user-attachments/assets/d0b04fcd-5d69-429c-8524-c10c946aaaa6" /> ## Motivation <!-- This update fixes the errors stated by resolving the deprecation warnings for PDO constants in the database.php file. --> ## Screenshots (if applicable) ## Checklist - [X] I've tested my changes thoroughly and added tests where applicable - [X] I've updated relevant documentation (if any) - [X] My code follows the project's conventions --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#2143
No description provided.