Skip to content

Deprecation in new PHP versions: #22

Description

@salacr

I can see an error in my log:
Deprecated: Ahc\Cron\Expression::__construct(): Implicitly marking parameter $checker as nullable is deprecated, the explicit nullable type must be used instead

the solution is quite simple just to replace
public function __construct(SegmentChecker $checker = null, Normalizer $normalizer = null)
with
public function __construct(?SegmentChecker $checker = null, ?Normalizer $normalizer = null)

There is more then one occurence of this problem. I can create an PR but this project doesn't look maintened anymore :/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions