Skip to content

Latest webmozart/assert 2.4.0 cause downgrade scoped error #9764

@samsonasik

Description

@samsonasik

Bug Report

Subject Details
Rector version dev-main

Minimal PHP Code Causing Issue

webmozart/assert latest have mixin code:

public static function nullOrTrue($value, $message = ''): ?true

which cause downgrade error

https://github.com/rectorphp/rector-src/actions/runs/26181495364/job/77025550737#step:14:77

Expected Behaviour

It should keep working.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions