File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -917,10 +917,6 @@ public function getDefaultValueAsMethodSynopsisString(): ?string {
917
917
918
918
private function setTypes (?Type $ type , ?Type $ phpDocType ): void
919
919
{
920
- if ($ phpDocType !== null && Type::equals ($ type , $ phpDocType )) {
921
- throw new Exception ('PHPDoc param type " ' . $ phpDocType ->__toString () . '" is unnecessary ' );
922
- }
923
-
924
920
$ this ->type = $ type ;
925
921
$ this ->phpDocType = $ phpDocType ;
926
922
}
@@ -1166,10 +1162,6 @@ public function getMethodSynopsisType(): ?Type {
1166
1162
1167
1163
private function setTypes (?Type $ type , ?Type $ phpDocType , bool $ tentativeReturnType ): void
1168
1164
{
1169
- if ($ phpDocType !== null && Type::equals ($ type , $ phpDocType )) {
1170
- throw new Exception ('PHPDoc return type " ' . $ phpDocType ->__toString () . '" is unnecessary ' );
1171
- }
1172
-
1173
1165
$ this ->type = $ type ;
1174
1166
$ this ->phpDocType = $ phpDocType ;
1175
1167
$ this ->tentativeReturnType = $ tentativeReturnType ;
You can’t perform that action at this time.
0 commit comments