Skip to content

Commit 72f4f7a

Browse files
Mark EntityManagerInterface::isOpen() as impure (#739)
1 parent 27cd48b commit 72f4f7a

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

stubs/EntityManager.stub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,9 @@ class EntityManager implements EntityManagerInterface
7070
*/
7171
public function flush($entity = null);
7272

73+
/**
74+
* @return bool
75+
* @phpstan-impure
76+
*/
77+
public function isOpen();
7378
}

stubs/EntityManagerDecorator.stub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,9 @@ class EntityManagerDecorator implements EntityManagerInterface
6161
*/
6262
public function copy($entity, $deep = false);
6363

64+
/**
65+
* @return bool
66+
* @phpstan-impure
67+
*/
68+
public function isOpen();
6469
}

stubs/EntityManagerInterface.stub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,9 @@ interface EntityManagerInterface extends ObjectManager
7878
*/
7979
public function wrapInTransaction(callable $func);
8080

81+
/**
82+
* @return bool
83+
* @phpstan-impure
84+
*/
85+
public function isOpen();
8186
}

0 commit comments

Comments
 (0)