Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6fd3d29

Browse filesBrowse files
committed
Add explicit Iterator/IteratorAggregate
For generated repositories, because static analyzers otherwise had problems figuring out the generated classes.
1 parent aca61aa commit 6fd3d29
Copy full SHA for 6fd3d29

1 file changed

+3-3Lines changed: 3 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Generate/RepositoriesGenerateCommand.php‎

Copy file name to clipboardExpand all lines: src/Generate/RepositoriesGenerateCommand.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class RepositoriesGenerateCommand
3030
/**
3131
* @implements \Iterator<int,\{namespaceOfEntity}\{classOfEntity}>
3232
*/
33-
class SelectIterator extends \Squirrel\Entities\Builder\SelectIterator
33+
class SelectIterator extends \Squirrel\Entities\Builder\SelectIterator implements \Iterator
3434
{
3535
public function current(): \{namespaceOfEntity}\{classOfEntity}
3636
{
@@ -51,7 +51,7 @@ public function current(): \{namespaceOfEntity}\{classOfEntity}
5151
*
5252
* @implements \IteratorAggregate<int,\{namespaceOfEntity}\{classOfEntity}>
5353
*/
54-
class SelectEntries extends \Squirrel\Entities\Builder\SelectEntries
54+
class SelectEntries extends \Squirrel\Entities\Builder\SelectEntries implements \IteratorAggregate
5555
{
5656
/**
5757
* @return \{namespaceOfEntity}\{classOfEntity}[]
@@ -122,7 +122,7 @@ public function select(): \{namespaceOfBuilders}\SelectEntries
122122
,
123123
'Writeable' => <<<'EOD'
124124
<?php
125-
// phpcs:ignoreFile -- created by SquirrelPHP library, do not alter
125+
// phpcs:ignoreFile -- created by SquirrelPHP entities library, do not alter
126126
/*
127127
* THIS FILE IS AUTOMATICALLY CREATED - DO NOT EDIT, DO NOT COMMIT TO VCS
128128
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.