Skip to content

Improvement adding Type declarations to files #480

@gnovaro

Description

@gnovaro

declare(strict_types=1); In December 2015, PHP 7 introduced scalar type declarations and with it the strict types flag. To enable the strict mode, a single declare directive must be placed at the top of the file. This means that the strictness of typing for scalars is configured on a per-file basis

https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict

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