Skip to content

Commit f4762c2

Browse files
committed
WEB: Fix typing annotation
1 parent 66dc667 commit f4762c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/OrmObjects/ScreenshotQuery.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class ScreenshotQuery extends BaseScreenshotQuery
2323
{
24-
public function findRandom(ConnectionInterface $con = null): ChildScreenshot
24+
public function findRandom(?ConnectionInterface $con = null): ChildScreenshot
2525
{
2626
if ($con === null) {
2727
$con = Propel::getServiceContainer()->getReadConnection(ScreenshotTableMap::DATABASE_NAME);
@@ -52,7 +52,7 @@ public function findRandom(ConnectionInterface $con = null): ChildScreenshot
5252
* @return array<array{'category_key': string, 'category_name': string, 'subcategory_key': string,
5353
* 'subcategory_name': string}>
5454
*/
55-
public function findCategories(ConnectionInterface $con = null): array
55+
public function findCategories(?ConnectionInterface $con = null): array
5656
{
5757
if ($con === null) {
5858
$con = Propel::getServiceContainer()->getReadConnection(ScreenshotTableMap::DATABASE_NAME);
@@ -104,7 +104,7 @@ public function findCategories(ConnectionInterface $con = null): array
104104
return $obj;
105105
}
106106

107-
public function filterByCompanyId(string $companyId, ConnectionInterface $con = null): self
107+
public function filterByCompanyId(string $companyId, ?ConnectionInterface $con = null): self
108108
{
109109
if ($companyId !== 'other') {
110110
/** @phpstan-ignore return.type */

0 commit comments

Comments
 (0)