diff --git a/.php_cs b/.php_cs index 50249ed7..c74eb394 100644 --- a/.php_cs +++ b/.php_cs @@ -10,7 +10,7 @@ return \PhpCsFixer\Config::create() ->setRiskyAllowed(true) ->setRules(array( '@PSR2' => true, -// 'header_comment' => ['header' => $header, 'commentType' => 'PHPDoc', 'separate' => 'none'], + 'header_comment' => ['header' => $header, 'commentType' => 'PHPDoc', 'separate' => 'none'], 'array_syntax' => ['syntax' => 'short'], 'binary_operator_spaces' => ['align_equals' => false, 'align_double_arrow' => false], 'blank_line_after_opening_tag' => true, @@ -21,16 +21,16 @@ return \PhpCsFixer\Config::create() 'combine_consecutive_unsets' => true, 'concat_space' => ['spacing' => 'one'], 'declare_equal_normalize' => true, - 'declare_strict_types' => false, + 'declare_strict_types' => true, 'dir_constant' => true, 'ereg_to_preg' => true, 'function_typehint_space' => true, - 'general_phpdoc_annotation_remove' => true, + 'general_phpdoc_annotation_remove' => ['author', 'category', 'package', 'copyright', 'version'], 'hash_to_slash_comment' => true, 'heredoc_to_nowdoc' => true, 'include' => true, 'indentation_type' => true, - 'is_null' => ['use_yoda_style' => false], +// 'is_null' => ['use_yoda_style' => false], 'linebreak_after_opening_tag' => true, 'lowercase_cast' => true, // 'mb_str_functions' => true, @@ -78,7 +78,7 @@ return \PhpCsFixer\Config::create() 'php_unit_dedicate_assert' => true, 'php_unit_fqcn_annotation' => true, 'php_unit_strict' => true, - 'phpdoc_add_missing_param_annotation' => true, +// 'phpdoc_add_missing_param_annotation' => true, 'phpdoc_align' => true, 'phpdoc_annotation_without_dot' => true, 'phpdoc_indent' => true, diff --git a/demo/01-explicit-bind.php b/demo/01-explicit-bind.php index eb4d6dab..7216b26c 100644 --- a/demo/01-explicit-bind.php +++ b/demo/01-explicit-bind.php @@ -1,4 +1,11 @@