Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

@var inline docblockの代わりにassert()を使用する #14

Open
MP-okui opened this issue Feb 5, 2021 · 0 comments
Open

@var inline docblockの代わりにassert()を使用する #14

MP-okui opened this issue Feb 5, 2021 · 0 comments

Comments

@MP-okui
Copy link
Owner

MP-okui commented Feb 5, 2021

このルールの使用を検討する。
SlevomatCodingStandard.PHP.RequireExplicitAssertion

参考にしているdoctrine/coding-standardでの議論

Example

Useing @var inline docblock

/** @var int $a */
$a = 0;

Useing assert()

$a = 0;
\assert(\is_int($a));
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant