Skip to content

Commit c57746a

Browse files
committed
ServiceDefinition: setInject() & getInject() works without E_USER_DEPRECATED
1 parent a46c738 commit c57746a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DI/ServiceDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ public function isShared()
129129
/** @deprecated */
130130
public function setInject($on)
131131
{
132-
trigger_error(__METHOD__ . '() is deprecated.', E_USER_DEPRECATED);
132+
//trigger_error(__METHOD__ . '() is deprecated.', E_USER_DEPRECATED);
133133
return $this->addTag(Extensions\InjectExtension::TAG_INJECT, $on);
134134
}
135135

136136

137137
/** @deprecated */
138138
public function getInject()
139139
{
140-
trigger_error(__METHOD__ . '() is deprecated.', E_USER_DEPRECATED);
140+
//trigger_error(__METHOD__ . '() is deprecated.', E_USER_DEPRECATED);
141141
return $this->getTag(Extensions\InjectExtension::TAG_INJECT);
142142
}
143143

0 commit comments

Comments
 (0)