{"repo":"struggle-for-php/sfp-phpstan-psr-log","free":true,"listed":false,"github":"https://github.com/struggle-for-php/sfp-phpstan-psr-log","clone":"git clone https://github.com/struggle-for-php/sfp-phpstan-psr-log.git","description":"Extra strict and opinionated psr/log (psr-3) rules for PHPStan","language":"PHP","stars":46,"topics":["phpstan","psr-3","logging","php"],"license":"MIT","category":"analytics","readme_excerpt":"psr/log(PSR-3) extensions for PHPStan struggle-for-php/sfp-phpstan-psr-log is extra strict and opinionated psr/log (psr-3) rules for PHPStan. PHPStan PSR-3: Logger Interface - PHP-FIG PSR-3 Meta Document Installation To use this extension, require it in Composer: Manual installation include extension.neon & rules.neon in your project's PHPStan config: Recommendation Settings Write these parameters to your project's phpstan.neon . Rules This package provides the following rules. PlaceholderCharactersRule Placeholder names SHOULD be composed only of the characters A-Z, a-z, 0-9, underscore , and period . :pushpin: error identifier --- sfpPsrLog.placeholderCharactersInvalidChar reports when placeholder in $message characters are not , A-Z , a-z , 0-9 , underscore , and period . :pushpin: error identifier --- sfpPsrLog.placeholderCharactersDoubleBraces reports when double braces pair {{ }} are used. PlaceholderCorrespondToKeysRule Placeholder names MUST correspond to keys in the context array. :pushpin: error identifier --- sfpPsrLog.placeholderCorrespondToKeysMissedContext reports when placeholder exists in message, but $context parameter is missed. :pushpin: error identifier --- sfpPsrLog.placeholderCorrespondToKeysMissedKey reports when placeholder exists in message, but key in $context does not exist against them. ContextKeyRule [!NOTE] PSR-3 has no provisions for array keys, but this is useful in many cases. :pushpin: error identifier --- sfpPsrLog.contextKeyNonEmptyString r","default_branch":null,"files":null,"tree":[],"storefront":"/r/struggle-for-php","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/struggle-for-php/sfp-phpstan-psr-log/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}