Skip to content

Commit 090fbce

Browse files
committed
update native function invocation rule
1 parent 5cbacb3 commit 090fbce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Prooph.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct()
2727
public function getRules(): array
2828
{
2929
$rules = [
30-
'@PSR2' => true,
30+
'@PSR12' => true,
3131
'array_syntax' => ['syntax' => 'short'],
3232
'binary_operator_spaces' => [
3333
'operators' => [
@@ -74,7 +74,10 @@ public function getRules(): array
7474
'strategy' => 'no_multi_line',
7575
],
7676
'native_function_casing' => true,
77-
'native_function_invocation' => true,
77+
'native_function_invocation' => [
78+
'include' => ['@internal'],
79+
'scope' => 'all',
80+
],
7881
'new_with_braces' => true,
7982
'no_alias_functions' => true,
8083
'no_blank_lines_after_class_opening' => true,

0 commit comments

Comments
 (0)