Skip to content

fix deprecations - #1267

Merged
stentrop merged 3 commits into
stablefrom
chore/php_deprecation_messages
Oct 16, 2026
Merged

stentrop merged 3 commits into
stablefrom
chore/php_deprecation_messages

Conversation

@stentrop

Copy link
Copy Markdown
Contributor

All changes meet the following requirements

  • Changelog entry was added
  • Changes have been documented
  • Changes have been tested by the author
  • Changes have been tested by the reviewer
  • Changes to routes were replicated in webshop package
  • Plugin can be built

@plentymarkets/plentyshop

@stentrop
stentrop marked this pull request as ready for review October 16, 2026 07:26
@stentrop
stentrop requested a review from a team as a code owner October 16, 2026 07:26
@stentrop
stentrop requested a balanced review from Copilot October 16, 2026 07:26

Copilot AI 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.

🟢 Approval recommended

The focused deprecation fixes have no identified blocking issues; tests and builds were not run.

0 open findings

What changed in this PR

Addresses PHP deprecations in shop services and extensions without changing intended behavior.

Changes:

  • Makes nullable parameter types explicit.
  • Removes the redundant curl_close() call.
  • Casts a URL argument to string before checking its prefix.
File Description
src/​Services/​NotificationService.php Makes placeholder arrays explicitly nullable.
src/​Services/​CountryService.php Makes the language parameter explicitly nullable.
src/​Services/​CategoryService.php Makes navigation language parameters explicitly nullable.
src/​Guards/​AbstractGuard.php Makes the URI parameter explicitly nullable.
src/​Extensions/​Functions/​ExternalContent.php Removes explicit cURL handle closing.
src/​Extensions/​Constants/​ShopUrls.php Casts the URL before its prefix check.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@stentrop
stentrop requested a balanced review from Copilot October 16, 2026 07:31

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI 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.

🟢 Approval recommended

Static review found no blocking issues in these narrowly scoped deprecation fixes; automated tests were not run.

0 open findings

🧠 Review effort: Balanced

ksted
ksted previously approved these changes Oct 16, 2026
@stentrop
stentrop enabled auto-merge October 16, 2026 09:15
@stentrop
stentrop disabled auto-merge October 16, 2026 09:18
@stentrop
stentrop merged commit b45ab7f into stable Oct 16, 2026
3 of 12 checks passed
@stentrop
stentrop deleted the chore/php_deprecation_messages branch October 16, 2026 09:18
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.

4 participants