Skip to content

Unbinding $this of closure is deprecated #29411

Closed
@kylekatarnls

Description

@kylekatarnls
  • Laravel Version: 5.8 / 6.0
  • PHP Version: 7.4.0 / 8.0.0

Description:

PHP deprecate closure unbinding, so the following line:
https://github.com/laravel/framework/blob/master/src/Illuminate/Support/Traits/Macroable.php#L110

throws:
Unbinding $this of closure is deprecated

since PHP 7.4.0

As having a similar macro system in Carbon, I'm working on possible alternatives.

Do you plan to support PHP 7.4 and 8? And to still support mixin/macro in those new versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions