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

Sign up
Appearance settings

Commit a9e78fa

Browse files
more
1 parent 0725734 commit a9e78fa

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

‎src/Reflection/Php/ClosureCallMethodReflection.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,9 @@ public function getAttributes(): array
202202
return $this->nativeMethodReflection->getAttributes();
203203
}
204204

205+
public function hasNoDiscardAttribute(): TrinaryLogic
206+
{
207+
return $this->nativeMethodReflection->hasNoDiscardAttribute();
208+
}
209+
205210
}

‎src/Reflection/Php/EnumCasesMethodReflection.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,9 @@ public function getAttributes(): array
161161
return [];
162162
}
163163

164+
public function hasNoDiscardAttribute(): TrinaryLogic
165+
{
166+
return TrinaryLogic::createYes();
167+
}
168+
164169
}

‎src/Rules/RestrictedUsage/RewrittenDeclaringClassMethodReflection.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,9 @@ public function hasSideEffects(): TrinaryLogic
145145
return $this->methodReflection->hasSideEffects();
146146
}
147147

148+
public function hasNoDiscardAttribute(): TrinaryLogic
149+
{
150+
return $this->methodReflection->hasNoDiscardAttribute();
151+
}
152+
148153
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /