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 Copilot May 27, 2026 08:17
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

Composer package changes
Prod Packages Operation Base Target
psr/container Upgraded 1.1.2 2.0.2
psr/log Upgraded 1.1.4 3.0.2
Dev Packages Operation Base Target
brainmaestro/composer-git-hooks Upgraded v2.8.5 v3.0.0
roave/security-advisories Changed dev-latest 16706d8 dev-latest 1729cec
symfony/console Upgraded v5.4.47 v7.4.11
symfony/polyfill-intl-grapheme Upgraded v1.37.0 v1.38.1
symfony/polyfill-intl-normalizer Upgraded v1.37.0 v1.38.0
symfony/polyfill-mbstring Upgraded v1.37.0 v1.38.1
symfony/string Upgraded v6.4.39 v7.4.11
symfony/polyfill-php73 Removed v1.37.0 -
symfony/polyfill-php80 Removed v1.37.0 -

Copy link
Copy Markdown

Copilot AI left a comment

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.

File Description
src/QueueContainer.php Adds strict typing to PSR container methods (get/has).
src/Logger.php Updates logger method signatures for PSR-3 v3 compatibility.
composer.json Raises PHP minimum and upgrades PSR package constraints.
composer.lock Locks updated dependency graph for the new constraints.

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

Comment thread src/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 thread src/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 {
Copy link
Copy Markdown

Copilot AI left a comment

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 thread composer.json
"php": "^8.0",
"psr/log": "^1.1.3",
"psr/container": "^1.1.1"
"php": "^8.3",
Copy link
Copy Markdown

Copilot AI left a comment

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 thread composer.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"
},
Copy link
Copy Markdown

Copilot AI left a comment

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 thread plugin.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

Matias Autio added 2 commits May 27, 2026 12:22
@mmatiasautio mmatiasautio merged commit 94af64d into master May 27, 2026
2 checks passed
@mmatiasautio mmatiasautio deleted the fix-php8-compatibility branch May 27, 2026 09:32
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