File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 "friendsofphp/php-cs-fixer" : " ^3.64" ,
3939 "laravel/pint" : " ^1.21" ,
4040 "mockery/mockery" : " ^1.6" ,
41+ "phpstan/phpstan" : " ^1.11.5" ,
4142 "phpunit/phpunit" : " ^11.5" ,
4243 "squizlabs/php_codesniffer" : " ^3.7" ,
4344 "symfony/var-dumper" : " ^6.0|^7.2" ,
Original file line number Diff line number Diff line change @@ -45,12 +45,7 @@ trait ManagesDebugAndProfiling
4545 public function withDebug (array |bool $ options = true ): static
4646 {
4747 $ this ->debugEnabled = $ options !== false ;
48-
49- if (is_array ($ options )) {
50- $ this ->debugOptions = array_merge (DebugInfo::getDefaultOptions (), $ options );
51- } else {
52- $ this ->debugOptions = DebugInfo::getDefaultOptions ();
53- }
48+ $ this ->debugOptions = array_merge (DebugInfo::getDefaultOptions (), is_array ($ options ) ? $ options : []);
5449
5550 return $ this ;
5651 }
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ protected function calculateMetrics(string $requestId): array
266266 }
267267
268268 if (isset ($ events ['request_sent ' ])) {
269- $ metrics ['time_to_first_byte ' ] = round (($ events ['response_start ' ] ?? $ endTime - $ events ['request_sent ' ]) * 1000 , 3 );
269+ $ metrics ['time_to_first_byte ' ] = round ((( $ events ['response_start ' ] ?? $ endTime) - $ events ['request_sent ' ]) * 1000 , 3 );
270270 }
271271
272272 // Include raw events for detailed analysis
You can’t perform that action at this time.
0 commit comments