Skip to content

mixed type is not reported on PHP 7.4 #6861

@szepeviktor

Description

@szepeviktor

Bug report

mixed type was introduced in PHP 8.0.

I cannot set PHP version in playground.

parameters:
  phpVersion: 70400 # PHP 7.4

Code snippet that reproduces the problem

https://phpstan.org/r/f561d4fe-243a-4df0-9f8d-6b26c99cff8b

Expected output

An error that Args\mixed is missing.

When run on PHP 7.4:

PHP Fatal error:  Uncaught TypeError: Typed property Args\register_meta::$default must be an instance of Args\mixed, int used

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions