Skip to content

Commit ed83ba8

Browse files
authored
Update src/ShortcodeAttsDynamicFunctionReturnTypeExtension.php
1 parent a3baceb commit ed83ba8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ShortcodeAttsDynamicFunctionReturnTypeExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public function isFunctionSupported(FunctionReflection $functionReflection): boo
2323

2424
public function getTypeFromFunctionCall(FunctionReflection $functionReflection, FuncCall $functionCall, Scope $scope): Type
2525
{
26-
$argsCount = count($functionCall->args);
27-
if ($argsCount === 0) {
26+
if ($functionCall->args === []) {
2827
return ParametersAcceptorSelector::selectFromArgs(
2928
$scope,
3029
$functionCall->args,

0 commit comments

Comments
 (0)