Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/vendor
/tests/Workspace
/tests/Assets/workspace
/phpbench.json
/composer.lock
/.php_cs.cache
4 changes: 4 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
$finder = PhpCsFixer\Finder::create()
->in('lib')
->in('tests')
->exclude([

])
;

return PhpCsFixer\Config::create()
Expand All @@ -13,3 +16,4 @@ return PhpCsFixer\Config::create()
])
->setFinder($finder)
;

8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
language: php

sudo: false

php:
- 7.1
- 7.2
- 7.3

sudo: false

cache:
directories:
Expand All @@ -15,5 +16,6 @@ before_script:

script:
- ./vendor/bin/php-cs-fixer fix --dry-run
- ./vendor/bin/phpstan analyse --level=7 lib
- ./vendor/bin/phpstan analyse lib -c phpstan.neon
- ./vendor/bin/phpunit

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
}
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "~7.0",
"infection/infection": "^0.11.4",
"friendsofphp/php-cs-fixer": "^2.13",
"phpstan/phpstan": "^0.10.7",
"friendsofphp/php-cs-fixer": "~2.15.0",
"phpstan/phpstan": "~0.11.0",
"phpactor/test-utils": "^1.0"
}
}
1 change: 1 addition & 0 deletions lib/TextDocumentUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ final private function __construct(string $scheme, string $path)

public static function fromString(string $uri): self
{
/** @var array $components */
$components = parse_url($uri);

if (!isset($components['path'])) {
Expand Down
9 changes: 9 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
includes:
- vendor/phpstan/phpstan/conf/config.level7.neon

parameters:
ignoreErrors:

paths:
- lib