Skip to content

Commit 278f00c

Browse files
authored
FIX: phpstan
1 parent 147703e commit 278f00c

File tree

5 files changed

+56
-16
lines changed

5 files changed

+56
-16
lines changed

.gitattributes

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1-
/build export-ignore
2-
/.gitattributes export-ignore
3-
/.travis.yml export-ignore
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.github export-ignore
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/phpunit.xml.dist export-ignore
9+
/art export-ignore
10+
/docs export-ignore
11+
/tests export-ignore
12+
/workbench export-ignore
13+
/.editorconfig export-ignore
14+
/.php_cs.dist.php export-ignore
15+
/psalm.xml export-ignore
16+
/psalm.xml.dist export-ignore
17+
/testbench.yaml export-ignore
18+
/UPGRADING.md export-ignore
19+
/phpstan.neon.dist export-ignore
20+
/phpstan-baseline.neon export-ignore

.gitignore

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
1-
/vendor
1+
# Composer Related
22
composer.lock
3-
.DS_Store
4-
.phpunit.result.cache
3+
/vendor
4+
5+
# Frontend Assets
6+
/node_modules
7+
8+
# Logs
9+
npm-debug.log
10+
yarn-error.log
11+
12+
# Caches
513
.phpunit.cache
6-
.idea
14+
.phpunit.result.cache
15+
/build
16+
17+
# IDE Helper
18+
_ide_helper.php
19+
_ide_helper_models.php
20+
.phpstorm.meta.php
21+
22+
# Editors
23+
/.idea
24+
/.fleet
25+
/.vscode
26+
27+
# Misc
28+
phpunit.xml
29+
phpstan.neon
30+
testbench.yaml
31+
/docs
32+
/coverage

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
}
3434
},
3535
"require-dev": {
36-
"larastan/larastan": "^2.9",
3736
"laravel/laravel": "^10.0|^11.0",
3837
"mockery/mockery": "^1.6.12",
3938
"php-coveralls/php-coveralls": "^2.7",

phpstan.neon.dist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ parameters:
66
paths:
77
- src
88
- config
9-
- database
109
tmpDir: build/phpstan
11-
checkOctaneCompatibility: true
12-
checkModelProperties: true
10+

src/GenderizeClient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class GenderizeClient
1313
protected $names;
1414

1515
/**
16-
* @var string The language used for the check
16+
* @var string | null The language used for the check
1717
*/
1818
protected $lang;
1919

2020
/**
21-
* @var string The country used for the check
21+
* @var string | null The country used for the check
2222
*/
2323
protected $country;
2424

@@ -49,7 +49,7 @@ public function __construct(Request $request)
4949
/**
5050
* Fluent setter for names given as string
5151
*
52-
* @param string $name
52+
* @param string | array $name
5353
* @return $this|GenderizeClient
5454
*/
5555
public function name($name = '')
@@ -78,7 +78,7 @@ public function names(array $names)
7878
/**
7979
* Fluent setter for language
8080
*
81-
* @param null $lang
81+
* @param string | null $lang
8282
* @return $this
8383
*/
8484
public function lang($lang = null)
@@ -91,7 +91,7 @@ public function lang($lang = null)
9191
/**
9292
* Fluent setter for country
9393
*
94-
* @param null $country
94+
* @param string | null $country
9595
* @return $this
9696
*/
9797
public function country($country = null)

0 commit comments

Comments
 (0)