forked from apache/netbeans
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
248 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...nfiles/org/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ObjectShapes01.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='40'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='43' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='20' value='object' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
...nfiles/org/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ObjectShapes02.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='55'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='58' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='20' value='object' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
...g/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeArrayShapes01.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='39'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='42' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='19' value='array' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
...g/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeArrayShapes02.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='54'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='57' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='19' value='array' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
.../org/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeGenerics01.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='33'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='36' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='19' value='array' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
.../org/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeGenerics02.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='39'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='42' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='19' value='array' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
.../org/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeGenerics03.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='32'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='35' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='18' value='list' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
.../org/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeGenerics04.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='32'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='35' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='18' value='Test' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
.../org/netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeGenerics05.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='32'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='35' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='18' value='Test' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
.../netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeObjectShapes01.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='40'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='43' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='20' value='object' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
9 changes: 9 additions & 0 deletions
9
.../netbeans/modules/php/editor/parser/PHPDocCommentParserTest/ReturnTypeObjectShapes02.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PHPDocBlock start='3' end='55'> | ||
<Tags> | ||
<PHPDocTypeTag start='3' end='58' kind='return'> | ||
<Types> | ||
<PHPDocTypeNode start='14' end='20' value='object' isArray='false'/> | ||
</Types> | ||
</PHPDocTypeTag> | ||
</Tags> | ||
</PHPDocBlock> |
64 changes: 64 additions & 0 deletions
64
php/php.editor/test/unit/data/testfiles/actions/testGH6039/testGH6039_01.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
namespace NS\GH6039; | ||
|
||
class TestClass1{}; | ||
class TestClass2{}; | ||
class TestClass3{}; | ||
class TestClass4{}; | ||
|
||
namespace Test; | ||
|
||
class Example { | ||
/** | ||
* @return array<int> Description | ||
*/ | ||
public function gh6039_01(): array { | ||
return []; | ||
} | ||
|
||
/** | ||
* @return array<int, string> Description | ||
*/ | ||
public function gh6039_02(): array { | ||
return []; | ||
} | ||
|
||
/** | ||
* @return Example<int> Description | ||
*/ | ||
public function gh6039_03(): Example { | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return int<0, 100> Description | ||
*/ | ||
public function gh6039_04(): Example { | ||
return 1; | ||
} | ||
|
||
/** | ||
* @return array{int, int} Description | ||
*/ | ||
public function gh6039_05(): array { | ||
return []; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
php/php.editor/test/unit/data/testfiles/actions/testGH6039/testGH6039_01.php.importData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Caret position: 1037 | ||
Should show uses panel: false | ||
Defaults: | ||
|
||
Names: | ||
|
||
Variants: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters