We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3167dc8 commit 11c2531Copy full SHA for 11c2531
tests/DecorateActionsTest.php
@@ -4,12 +4,20 @@
4
5
beforeEach(function () {
6
$this->request = new class extends ActionRequest {
7
- public function authorize(): bool { return true; }
8
- public function rules(): array { return []; }
9
- public function handle() { /* no-op */ }
+ public function authorize(): bool
+ {
+ return true;
10
+ }
11
+ public function rules(): array
12
13
+ return [];
14
15
+ public function handle()
16
+ { /* no-op */
17
18
};
19
- $method = new \ReflectionMethod($this->request, 'hasMethod');
20
+ $method = new \ReflectionMethod($this->request, 'hasMethod');
21
$method->setAccessible(true);
22
$this->hasMethod = $method;
23
});
0 commit comments