Skip to content

Commit c9b8430

Browse files
committed
Add phpdoc libraries
1 parent 67fe27e commit c9b8430

210 files changed

Lines changed: 7436 additions & 611 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
* text=auto eol=lf
2+
*.pp eol=lf linguist-language=EBNF
3+
*.pp2 eol=lf linguist-language=EBNF
24

35
# GIT
46
.editorconfig export-ignore

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
"require": {
1010
"php": "^8.4",
1111
"type-lang/parser": "^2.0",
12-
"type-lang/printer": "^2.0"
12+
"type-lang/printer": "^2.0",
13+
"type-lang/phpdoc": "^2.0",
14+
"type-lang/phpdoc-standard-tags": "^2.0",
15+
"type-lang/phpdoc-template-tags": "^2.0"
1316
},
1417
"require-dev": {
18+
"friendsofphp/php-cs-fixer": "^3.95.8",
1519
"jetbrains/phpstorm-attributes": "^1.2",
1620
"phplrt/compiler": "^3.7",
1721
"phpstan/phpstan": "^2.2",
@@ -23,7 +27,10 @@
2327
"autoload-dev": {
2428
"psr-4": {
2529
"TypeLang\\Parser\\Tests\\": "libs/parser/tests",
26-
"TypeLang\\Printer\\Tests\\": "libs/printer/tests"
30+
"TypeLang\\Printer\\Tests\\": "libs/printer/tests",
31+
"TypeLang\\PHPDoc\\Tests\\": "libs/phpdoc/tests",
32+
"TypeLang\\PHPDoc\\Standard\\Tests\\": "libs/phpdoc-standard-tags/tests",
33+
"TypeLang\\PHPDoc\\Template\\Tests\\": "libs/phpdoc-template-tags/tests"
2734
}
2835
},
2936
"extra": {

libs/parser/.gitattributes

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
*.pp eol=lf linguist-language=EBNF
33
*.pp2 eol=lf linguist-language=EBNF
44

5+
# GIT
56
.editorconfig export-ignore
6-
.php-cs-fixer.php export-ignore
77
.gitattributes export-ignore
88
.gitignore export-ignore
99

10+
# Tools
11+
.php-cs-fixer.php export-ignore
12+
phpstan.neon export-ignore
13+
14+
# Tests + CI
1015
phpunit.xml export-ignore
11-
psalm.xml export-ignore
12-
rector.php export-ignore
1316

1417
/.github export-ignore
15-
/example export-ignore
1618
/tests export-ignore

libs/parser/phpunit.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
backupStaticProperties="false"
1111
>
1212
<testsuites>
13-
<testsuite name="unit">
14-
<directory>tests/Unit</directory>
15-
</testsuite>
16-
<testsuite name="functional">
17-
<directory>tests/Functional</directory>
13+
<testsuite name="Component Tests">
14+
<directory>tests</directory>
1815
</testsuite>
1916
</testsuites>
2017

libs/parser/tests/Concern/CompileGrammarIfPossible.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

libs/parser/tests/Concern/InteractWithParser.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

libs/parser/tests/TestCase.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
namespace TypeLang\Parser\Tests;
66

77
use PHPUnit\Framework\Attributes\Group;
8-
use TypeLang\Parser\Tests\Concern\CompileGrammarIfPossible;
9-
use TypeLang\Parser\Tests\Concern\InteractWithParser;
108
use PHPUnit\Framework\TestCase as BaseTestCase;
119

1210
#[Group('type-lang/parser')]
13-
abstract class TestCase extends BaseTestCase
14-
{
15-
use CompileGrammarIfPossible;
16-
use InteractWithParser;
17-
}
11+
abstract class TestCase extends BaseTestCase {}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml,neon}]
15+
indent_size = 2
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* text=auto eol=lf
2+
*.pp eol=lf linguist-language=EBNF
3+
*.pp2 eol=lf linguist-language=EBNF
4+
5+
# GIT
6+
.editorconfig export-ignore
7+
.gitattributes export-ignore
8+
.gitignore export-ignore
9+
10+
# Tools
11+
.php-cs-fixer.php export-ignore
12+
phpstan.neon export-ignore
13+
14+
# Tests + CI
15+
phpunit.xml export-ignore
16+
17+
/.github export-ignore
18+
/tests export-ignore
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# IDE
2+
/.idea/
3+
4+
# Composer
5+
/composer.lock
6+
/vendor/
7+
8+
# Testing
9+
test.php

0 commit comments

Comments
 (0)