Skip to content

[suggestion] Type hints/return types #814

Open
@rieschl

Description

@rieschl

I really like this PHP reference, it's nice to send it to beginners and people who've been away for a while and want to get up to date.

But what's missing is any explanation of method/function type hints and return types, also in conjunction with declare(strict_types=1);.

Personally I think type safety is a very important concept and when using it from the beginning it makes code cleaner and also easier to understand.

PHP 7.4 will also have typed properties, so maybe this topic is worth to be added? :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    feedback-neededWe need feedback on this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions