-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from MontealegreLuis/union-types
Constructot Property Promotion and Union types
- Loading branch information
Showing
258 changed files
with
3,281 additions
and
2,948 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
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
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
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
FROM composer:1.10 AS composer | ||
FROM composer:2.1.3 AS composer | ||
|
||
ADD composer.* ./ | ||
ADD src/ src | ||
|
||
RUN composer global require hirak/prestissimo --no-plugins --no-scripts | ||
RUN composer install --no-dev --optimize-autoloader --prefer-dist --no-progress --no-interaction --ignore-platform-reqs --no-plugins | ||
|
||
FROM php:7.2.34-cli-alpine3.12 AS phuml | ||
FROM php:8.0.8-cli-alpine3.13 AS phuml | ||
MAINTAINER Luis Montealegre <[email protected]> | ||
|
||
RUN apk add --update --no-cache autoconf g++ pkgconfig imagemagick imagemagick-dev make ttf-freefont graphviz \ | ||
|
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 |
---|---|---|
@@ -1,35 +1,50 @@ | ||
SHELL = /bin/bash | ||
|
||
.PHONY: test coverage format check diagram dot stats | ||
|
||
ARGS="" | ||
INFECTION_BADGE_API_KEY="" | ||
|
||
.PHONY: help | ||
help: ## Show help | ||
@echo Please specify a build target. The choices are: | ||
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
test: | ||
.PHONY: test | ||
test: ## Run all the tests using a Docker container | ||
@docker-compose run --rm tests php vendor/bin/phpunit --testdox | ||
|
||
coverage: | ||
.PHONY: coverage | ||
coverage: ## Generate the code coverage report using a Docker container | ||
@docker-compose run --rm -e XDEBUG_MODE=coverage tests php vendor/bin/phpunit --coverage-html build/coverage | ||
|
||
infection: | ||
.PHONY: infection | ||
infection: ## Execute the mutation testing suite using a Docker container | ||
@docker-compose run --rm -e XDEBUG_MODE=coverage tests php vendor/bin/infection --threads=4 | ||
|
||
diagram: | ||
@docker-compose run --rm tests php bin/phuml phuml:diagram $(ARGS) | ||
|
||
dot: | ||
@docker-compose run --rm tests php bin/phuml phuml:dot $(ARGS) | ||
|
||
stats: | ||
@docker-compose run --rm tests php bin/phuml phuml:statistics $(ARGS) | ||
|
||
format: | ||
@vendor/bin/rector process | ||
.PHONY: format | ||
format: ## Fix Coding Standard violations in production and test code | ||
@vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -v --using-cache no | ||
@vendor/bin/php-cs-fixer fix --config=.php-cs-fixer-tests.php -v --using-cache no | ||
|
||
check: | ||
.PHONY: refactor | ||
refactor: ## Apply automated refactorings using Rector | ||
@vendor/bin/rector process | ||
|
||
.PHONY: check | ||
check: ## Execute all code quality checks | ||
@vendor/bin/grumphp run --no-interaction | ||
@vendor/bin/composer-require-checker check | ||
@docker-compose run --rm tests vendor/bin/phpunit --testsuite 'Integration tests' | ||
@vendor/bin/rector process --dry-run | ||
@docker-compose run --rm -e XDEBUG_MODE=coverage tests php vendor/bin/infection --threads=4 | ||
@docker-compose run --rm -e XDEBUG_MODE=coverage -e INFECTION_BADGE_API_KEY=$(INFECTION_BADGE_API_KEY) tests php vendor/bin/infection --threads=4 | ||
|
||
.PHONY: diagram | ||
diagram: ## Generate a class diagram with phUML using a Docker container | ||
@docker-compose run --rm tests php bin/phuml phuml:diagram $(ARGS) | ||
|
||
.PHONY: dot | ||
dot: ## Generate a DOT file with phUML using a Docker container | ||
@docker-compose run --rm tests php bin/phuml phuml:dot $(ARGS) | ||
|
||
.PHONY: stats | ||
stats: ## Generate a statistics file with phUML using a Docker container | ||
@docker-compose run --rm tests php bin/phuml phuml:statistics $(ARGS) |
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
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
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
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
Oops, something went wrong.