Skip to content

Commit 11bf978

Browse files
committed
refactor: fix return.type errors
1 parent f4ad14b commit 11bf978

4 files changed

Lines changed: 7 additions & 18 deletions

File tree

system/Database/BaseBuilder.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3591,13 +3591,16 @@ protected function setBind(string $key, $value = null, bool $escape = true): str
35913591
/**
35923592
* Returns a clone of a Base Builder with reset query builder values.
35933593
*
3594-
* @return $this
3594+
* @return static
35953595
*
35963596
* @deprecated
35973597
*/
35983598
protected function cleanClone()
35993599
{
3600-
return (clone $this)->from([], true)->resetQuery();
3600+
$clone = clone $this;
3601+
$clone->from([], true);
3602+
3603+
return $clone->resetQuery();
36013604
}
36023605

36033606
/**

system/Router/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ public function executeAfterAttributes(RequestInterface $request, ResponseInterf
914914
* Returns the route attributes collected during routing
915915
* for the current route.
916916
*
917-
* @return array{class: list<string>, method: list<string>}
917+
* @return array{class: list<RouteAttributeInterface>, method: list<RouteAttributeInterface>}
918918
*/
919919
public function getRouteAttributes(): array
920920
{

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 1560 errors
1+
# total 1558 errors
22

33
includes:
44
- argument.type.neon
@@ -18,6 +18,5 @@ includes:
1818
- property.nonObject.neon
1919
- property.notFound.neon
2020
- property.phpDocType.neon
21-
- return.type.neon
2221
- staticMethod.notFound.neon
2322
- ternary.shortNotAllowed.neon

utils/phpstan-baseline/return.type.neon

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)