Skip to content

sscanf can return nulls #7735

@staabm

Description

@staabm

Bug report

while playing with a few examples to fix and learn about #7563
I realized that sscanf can return a array containg NULL

Code snippet that reproduces the problem

https://3v4l.org/llJMs
https://phpstan.org/r/c113455f-7972-436d-829b-01ba659e8e20

Expected output

array, allowing null at the offsets

Metadata

Metadata

Assignees

No one assigned

    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