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 @@ -733,10 +733,6 @@ public function getDefaultValueAsMethodSynopsisString(): ?string {
733
733
734
734
private function setTypes (?Type $ type , ?Type $ phpDocType ): void
735
735
{
736
- if ($ phpDocType !== null && Type::equals ($ type , $ phpDocType )) {
737
- throw new Exception ('PHPDoc param type " ' . $ phpDocType ->__toString () . '" is unnecessary ' );
738
- }
739
-
740
736
$ this ->type = $ type ;
741
737
$ this ->phpDocType = $ phpDocType ;
742
738
}
@@ -910,10 +906,6 @@ public function getMethodSynopsisType(): ?Type {
910
906
911
907
private function setTypes (?Type $ type , ?Type $ phpDocType , bool $ tentativeReturnType ): void
912
908
{
913
- if ($ phpDocType !== null && Type::equals ($ type , $ phpDocType )) {
914
- throw new Exception ('PHPDoc return type " ' . $ phpDocType ->__toString () . '" is unnecessary ' );
915
- }
916
-
917
909
$ this ->type = $ type ;
918
910
$ this ->phpDocType = $ phpDocType ;
919
911
$ this ->tentativeReturnType = $ tentativeReturnType ;
You can’t perform that action at this time.
0 commit comments