Skip to content

PHP 8.3 deprecated warning for Brain-WP/Cortex library #418

@reygcalantaol

Description

@reygcalantaol

Current Outcome

When using PHP 8.3, a deprecation warning is currently triggered:

PHP Deprecated: Return type of WPUM\Brain\Cortex\Route\PriorityRouteCollection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\Laragon\www\wpum.test\wp-content\plugins\wp-user-manager\vendor-dist\brain\cortex\src\Cortex\Route\PriorityRouteCollection.php on line 62

Desired Outcome

Ideally, PHP 8.3 should not produce any warnings.

Steps to Reproduce

  1. Use PHP 8.3
  2. Visit the user profile page in the frontend

Related

Acceptance Criteria

  • [ ]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions