Skip to content

Commit 9f2c571

Browse files
committed
Add code completion for AntiCSRF token functions
1 parent 9d49021 commit 9f2c571

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.phpstorm.meta.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,22 @@
591591
'text/javascript',
592592
'text/xml',
593593
);
594+
registerArgumentsSet(
595+
'anti_csrf_token_functions',
596+
'base64_encode',
597+
'bin2hex',
598+
'md5',
599+
);
600+
expectedArguments(
601+
\Framework\HTTP\AntiCSRF::__construct(),
602+
2,
603+
argumentsSet('anti_csrf_token_functions')
604+
);
605+
expectedArguments(
606+
\Framework\HTTP\AntiCSRF::setGenerateTokenFunction(),
607+
0,
608+
argumentsSet('anti_csrf_token_functions')
609+
);
594610
expectedReturnValues(
595611
\Framework\HTTP\MessageInterface::getProtocol(),
596612
argumentsSet('protocols')

0 commit comments

Comments
 (0)