Skip to content

Fixes - #10

Merged
mmatiasautio merged 7 commits into
masterfrom
fix-php8-compatibility
May 27, 2026
Merged

Fixes#10
mmatiasautio merged 7 commits into
masterfrom
fix-php8-compatibility

Conversation

@mmatiasautio

Copy link
Copy Markdown
Contributor

No description provided.

@mmatiasautio
mmatiasautio requested a review from CopilotMay 27, 2026 08:17
@github-actions

github-actionsBot commented May 27, 2026

Copy link
Copy Markdown
Composer package changes
Prod PackagesOperationBaseTarget
psr/containerUpgraded1.1.22.0.2
psr/logUpgraded1.1.43.0.2
Dev PackagesOperationBaseTarget
brainmaestro/composer-git-hooksUpgradedv2.8.5v3.0.0
roave/security-advisoriesChangeddev-latest 16706d8dev-latest 1729cec
symfony/consoleUpgradedv5.4.47v7.4.11
symfony/polyfill-intl-graphemeUpgradedv1.37.0v1.38.1
symfony/polyfill-intl-normalizerUpgradedv1.37.0v1.38.0
symfony/polyfill-mbstringUpgradedv1.37.0v1.38.1
symfony/stringUpgradedv6.4.39v7.4.11
symfony/polyfill-php73Removedv1.37.0-
symfony/polyfill-php80Removedv1.37.0-

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the library’s type signatures and dependency requirements by upgrading to PSR v2/v3 packages and raising the minimum supported PHP version, with corresponding lockfile updates.

Changes:

  • Bump runtime requirements to PHP ^8.3, psr/log^3.0, and psr/container^2.0.
  • Update QueueContainer and Logger method signatures to use stricter parameter/return types aligned with the newer PSR packages.
  • Regenerate composer.lock to reflect the updated dependency set.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
src/QueueContainer.phpAdds strict typing to PSR container methods (get/has).
src/Logger.phpUpdates logger method signatures for PSR-3 v3 compatibility.
composer.jsonRaises PHP minimum and upgrades PSR package constraints.
composer.lockLocks updated dependency graph for the new constraints.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadsrc/Logger.php Outdated
Comment on lines +101 to +104
* @param string $message The log message.
* @param array $context The error context data.
*/
public function debug( $message, array $context = [] ) {
public function debug( \Stringable|string $message, array $context = [] ) : void {
Comment threadsrc/Logger.php
Comment on lines 197 to +201
* @param mixed $level The log level.
* @param string $message The log message.
* @param array $context The error context data.
*/
public function log( $level, $message, array $context = [] ) : void {
public function log( mixed $level, \Stringable|string $message, array $context = [] ) : void {

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Comment threadcomposer.json
"php": "^8.0",
"psr/log": "^1.1.3",
"psr/container": "^1.1.1"
"php": "^8.3",

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Comment threadcomposer.json
Comment on lines 30 to 34
"require": {
"php": "^8.0",
"psr/log": "^1.1.3",
"psr/container": "^1.1.1"
"php": "^8.3",
"psr/log": "^3.0",
"psr/container": "^2.0"
},

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

Dockerfile:8

  • Switching the base image to php:8.3-cli likely breaks the apt-get install -y python-pip / pip ... steps (Debian-based PHP 8.3 images typically don’t ship a python-pip package anymore). Update the Dockerfile to install Python 3 tooling instead (e.g., python3-pip and use pip3) so pywatch installation works on this base image.
FROM php:8.3-cli
MAINTAINER devgeniem
RUN apt-get update
RUN apt-get install -y python-pip
RUN pip install -U pip
RUN pip install pywatch

Comment threadplugin.php Outdated
@@ -5,7 +5,7 @@
* Description: WordPress Queue is a modular library for managing queued tasks in WordPress.
* Version: 1.0.2
* Requires at least: 5.4
Comment thread.travis.yml
Comment on lines 9 to 12
php:
- nightly
- 8.0
- 7.4
- 8.3

@mmatiasautio
mmatiasautio merged commit 94af64d into masterMay 27, 2026
2 checks passed
@mmatiasautio
mmatiasautio deleted the fix-php8-compatibility branch May 27, 2026 09:32
Sign up for freeto 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

@mmatiasautio