Skip to content

Commit 2de8869

Browse files
umherirrenderWMDE bot
authored andcommitted
lib,data-access: Replace call_user_func with dynamic function call
Use modern php syntax to call a callable. Reduce the stack trace to improve performance and better IDE and static analyzer support Change-Id: Ib52a9d66428a41b30b721c970aec7ae60808c8fc
1 parent 7d30753 commit 2de8869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/DispatchingEntityIdParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private function assertIdIsString( $idSerialization ) {
7878
*/
7979
private function buildId( $idBuilder, $idSerialization ) {
8080
try {
81-
return call_user_func( $idBuilder, $idSerialization );
81+
return $idBuilder( $idSerialization );
8282
} catch ( InvalidArgumentException $ex ) {
8383
// Should not happen, but if it does, re-throw the original message
8484
throw new EntityIdParsingException( $ex->getMessage(), 0, $ex );

0 commit comments

Comments
 (0)