forked from php-community/JMSTranslationBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added gitattributes - exclude docs, tests from archive * Added template name and line number to exception thrown by DefaultApplyingNodeVisitor * Update FormExtractor.php Trying to get property 'key' of non-object * Fix --intl-icu option `--intl-icu` option was never interpreted because of a misuse of InputInterface::hasParameterOption * fix: require symfony/expression-language * Fallback to 'messages' domain when domain is null in trans|transchoice method * Support named argument for extracting domain * Bump nikic/php-parser to ^4.9 * Add attributes for routes * Allow to use translate controller without sensio/framework-extra-bundle * resolved deprecation notice with Symfony 5.4 PR resolves this deprecation: Method "Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder()" might add "TreeBuilder" as a native return type declaration in the future. Do the same in implementation "JMS\TranslationBundle\DependencyInjection\Configuration" now to avoid errors or add an explicit @return annotation to suppress this message. * github actions, testing and coding standard, drop symfony 3.4 support * symfony 6 support * Handle properly promoted constructor properties default values * Fix schmittjoh#575: Remove deprecation notices with string interpolation Resolve pull request schmittjoh#576 * add void return signatures * chore: fix coding style * fix: fix wrong return type-hint depending on which symfony/translation version is installed * chore: bump symfony version for tests * chore(deps): upgrade nikic/php-parser@^5 * fix: prevent type error on choices array with optional keys * chore: fix phpcs + nikic/php-parser@4 compatibility * Fix tests * tests + ecs --------- Co-authored-by: iamvar <iamvar@gmail.com> Co-authored-by: Asmir Mustafic <goetas@gmail.com> Co-authored-by: Adam Wójs <adam@wojs.pl> Co-authored-by: Vladimir Pak <TheRatW@gmail.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Co-authored-by: Quentin Dreyer <quentin.dreyer@gmail.com> Co-authored-by: François-Xavier de Guillebon <deguif@gmail.com> Co-authored-by: Tomas Ludvik <ludviktomas@gmail.com> Co-authored-by: GRandFather <HenkerX64@users.noreply.github.com> Co-authored-by: Derek Stephen McLean <delboy1978uk@gmail.com> Co-authored-by: qkdreyer <quentin.dreyer@rgsystem.com>
- Loading branch information
1 parent
334336f
commit 25e1a2e
Showing
58 changed files
with
472 additions
and
321 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/.gitattributes export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/CHANGELOG.md export-ignore | ||
/CONTRIBUTING.md export-ignore | ||
/README.md export-ignore | ||
/Tests export-ignore | ||
/phpunit.xml.dist export-ignore |
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,61 @@ | ||
# yamllint disable rule:line-length | ||
# yamllint disable rule:braces | ||
|
||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
phpunit: | ||
name: "PHPUnit" | ||
runs-on: "ubuntu-20.04" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
symfony-version: | ||
- '^4.4' | ||
- '^5.4' | ||
- '^6.4' | ||
php-version: | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
dependencies: | ||
- "lowest" | ||
- "highest" | ||
exclude: | ||
- symfony-version: '^6.4' | ||
php-version: '7.4' | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: "pcov" | ||
ini-values: "zend.assertions=1" | ||
|
||
- name: Configure symfony version | ||
uses: php-actions/composer@v6 | ||
with: | ||
command: config | ||
args: extra.symfony.require ${{ matrix.symfony-version }} | ||
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
composer-options: "${{ matrix.composer-options }}" | ||
|
||
- name: Run tests | ||
run: | | ||
SYMFONY_DEPRECATIONS_HELPER=weak vendor/bin/simple-phpunit ${PHPUNIT_FLAGS} |
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,35 @@ | ||
name: "Coding Standards" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
coding-standards: | ||
name: "Coding Standards" | ||
runs-on: "ubuntu-20.04" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
tools: "cs2pr" | ||
extensions: pdo_sqlite | ||
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v1" | ||
|
||
- name: "Run PHP_CodeSniffer" | ||
run: "vendor/bin/phpcs" |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.