We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm really curious. What's the intended use case for public function with($value) ?
public function with($value)
The text was updated successfully, but these errors were encountered:
I believe it allows you to pass an object to it and then chain a method call on it in a single line.
class Foo { public function bar() { echo "Hello World"; } } with(new Foo())->bar();
Sorry, something went wrong.
But (new Foo())->bar() is valid since PHP 5.4
No branches or pull requests
I'm really curious. What's the intended use case for
public function with($value)
?The text was updated successfully, but these errors were encountered: