ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,662
- Points
- 823
Reputation:
Modern phpdoc (at least the variants supported by phpstan and phpstorm) supports defining a callable's expected arguments, which can provide feedback to the caller and the user on the types of arguments.
Schema manager has 3 functions which take a closure which this can be applied to:
PHP:
Read more
Continue reading...
Schema manager has 3 functions which take a closure which this can be applied to:
PHP:
Code:
/**
* @param string $tableName
* @param \Closure(Alter): void $toApply
*/
public function alterTable($tableName, \Closure $toApply)
/**
* @param string $tableName
* @param \Closure(Create): void...
Read more
Continue reading...