File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/Illuminate/Support/Traits Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -956,27 +956,27 @@ protected function equality($value)
956
956
}
957
957
958
958
/**
959
- * Make a function that returns what's passed to it .
959
+ * Make a function using another function, by negating its result .
960
960
*
961
+ * @param \Closure $callback
961
962
* @return \Closure
962
963
*/
963
- protected function identity ( )
964
+ protected function negate ( Closure $ callback )
964
965
{
965
- return function ($ value ) {
966
- return $ value ;
966
+ return function (... $ params ) use ( $ callback ) {
967
+ return ! $ callback (... $ params ) ;
967
968
};
968
969
}
969
970
970
971
/**
971
- * Make a function using another function, by negating its result .
972
+ * Make a function that returns what's passed to it .
972
973
*
973
- * @param \Closure $callback
974
974
* @return \Closure
975
975
*/
976
- protected function negate ( Closure $ callback )
976
+ protected function identity ( )
977
977
{
978
- return function (... $ params ) use ( $ callback ) {
979
- return ! $ callback (... $ params ) ;
978
+ return function ($ value ) {
979
+ return $ value ;
980
980
};
981
981
}
982
982
}
You can’t perform that action at this time.
0 commit comments