Skip to content

Commit c7b61f4

Browse files
authored
Composer update deps (#210)
* Composer update deps * try to require latest (security advisory) * Maybe better? * test remove lock file * Apply CS/Rector changes * lets try without commiting please * upgrade php 8.5, upgrade vendors * rollback * hash * Apply CS/Rector changes * Update README.md * Apply CS/Rector changes * Remove empty line from README.md * use supported versions in tests * baseline * remove 8.1 * 8.5 --------- Co-authored-by: johanwilfer <[email protected]>
1 parent 7d76d3f commit c7b61f4

File tree

8 files changed

+935
-916
lines changed

8 files changed

+935
-916
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ TbbcMoneybundle comes with docker compose to ease development, to build dev dock
111111
docker compose up --build -d
112112
```
113113

114-
And once it is built, enter the php 8.1, 8.2, 8.3 or 8.4 container:
114+
And once it is built, enter the php 8.2, 8.3, 8.4 or 8.5 container:
115115
```bash
116-
docker exec -it tbbc-moneybundle-php81 bash
117116
docker exec -it tbbc-moneybundle-php82 bash
118117
docker exec -it tbbc-moneybundle-php83 bash
119118
docker exec -it tbbc-moneybundle-php84 bash

compose.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
services:
2-
tbbc-moneybundle-php81:
3-
container_name: tbbc-moneybundle-php81
4-
build:
5-
context: .
6-
dockerfile: ./docker/dockerfile-tbbc-moneybundle-php81
7-
tty: true
8-
stdin_open: true
9-
volumes:
10-
- .:/docker:rw,delegated
11-
122
tbbc-moneybundle-php82:
133
container_name: tbbc-moneybundle-php82
144
build:

composer.lock

Lines changed: 927 additions & 819 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/dockerfile-tbbc-moneybundle-php81

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

docker/dockerfile-tbbc-moneybundle-php85

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.5.0RC3
1+
FROM php:8.5
22
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
33

44
RUN apt-get update && apt-get install -y git curl nano zip libicu-dev

phpstan-baseline.neon

Lines changed: 4 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -61,80 +61,14 @@ parameters:
6161
path: src/DependencyInjection/Compiler/StorageCompilerPass.php
6262

6363
-
64-
rawMessage: 'Call to an undefined method Symfony\Component\Config\Definition\Builder\NodeParentInterface::defaultValue().'
65-
identifier: method.notFound
66-
count: 1
67-
path: src/DependencyInjection/Configuration.php
68-
69-
-
70-
rawMessage: 'Cannot call method booleanNode() on mixed.'
71-
identifier: method.nonObject
72-
count: 1
73-
path: src/DependencyInjection/Configuration.php
74-
75-
-
76-
rawMessage: 'Cannot call method cannotBeEmpty() on mixed.'
77-
identifier: method.nonObject
78-
count: 3
79-
path: src/DependencyInjection/Configuration.php
80-
81-
-
82-
rawMessage: 'Cannot call method defaultValue() on mixed.'
83-
identifier: method.nonObject
84-
count: 5
85-
path: src/DependencyInjection/Configuration.php
86-
87-
-
88-
rawMessage: 'Cannot call method end() on mixed.'
89-
identifier: method.nonObject
90-
count: 8
91-
path: src/DependencyInjection/Configuration.php
92-
93-
-
94-
rawMessage: 'Cannot call method ifNotInArray() on mixed.'
95-
identifier: method.nonObject
96-
count: 1
97-
path: src/DependencyInjection/Configuration.php
98-
99-
-
100-
rawMessage: 'Cannot call method integerNode() on mixed.'
101-
identifier: method.nonObject
102-
count: 1
103-
path: src/DependencyInjection/Configuration.php
104-
105-
-
106-
rawMessage: 'Cannot call method min() on mixed.'
107-
identifier: method.nonObject
108-
count: 1
109-
path: src/DependencyInjection/Configuration.php
110-
111-
-
112-
rawMessage: 'Cannot call method requiresAtLeastOneElement() on mixed.'
113-
identifier: method.nonObject
114-
count: 1
115-
path: src/DependencyInjection/Configuration.php
116-
117-
-
118-
rawMessage: 'Cannot call method scalarNode() on mixed.'
119-
identifier: method.nonObject
120-
count: 3
121-
path: src/DependencyInjection/Configuration.php
122-
123-
-
124-
rawMessage: 'Cannot call method thenInvalid() on mixed.'
125-
identifier: method.nonObject
126-
count: 1
127-
path: src/DependencyInjection/Configuration.php
128-
129-
-
130-
rawMessage: 'Cannot call method validate() on mixed.'
131-
identifier: method.nonObject
64+
rawMessage: 'Method Tbbc\MoneyBundle\DependencyInjection\Configuration::addCurrencySection() has parameter $node with generic class Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition but does not specify its types: TParent'
65+
identifier: missingType.generics
13266
count: 1
13367
path: src/DependencyInjection/Configuration.php
13468

13569
-
136-
rawMessage: 'Parameter #1 $node of method Tbbc\MoneyBundle\DependencyInjection\Configuration::addCurrencySection() expects Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition, Symfony\Component\Config\Definition\Builder\NodeDefinition given.'
137-
identifier: argument.type
70+
rawMessage: 'Method Tbbc\MoneyBundle\DependencyInjection\Configuration::getConfigTreeBuilder() return type with generic class Symfony\Component\Config\Definition\Builder\TreeBuilder does not specify its types: T'
71+
identifier: missingType.generics
13872
count: 1
13973
path: src/DependencyInjection/Configuration.php
14074

tests/Pair/RatioProvider/ExchangerAdapterRatioProviderTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
use Exchanger\Service\PhpArray;
99
use Tbbc\MoneyBundle\MoneyException;
1010
use Tbbc\MoneyBundle\Pair\RatioProvider\ExchangerAdapterRatioProvider;
11-
use Tbbc\MoneyBundle\Pair\RatioProviderInterface;
1211

1312
final class ExchangerAdapterRatioProviderTest extends AbstractRatioProvider
1413
{
15-
protected function getRatioProvider(): RatioProviderInterface
14+
protected function getRatioProvider(): ExchangerAdapterRatioProvider
1615
{
1716
$ratios = $this->getRatiosToTest();
1817

tests/Pair/RatioProvider/StaticRatioProviderTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
namespace Tbbc\MoneyBundle\Tests\Pair\RatioProvider;
66

77
use Tbbc\MoneyBundle\Pair\RatioProvider\StaticRatioProvider;
8-
use Tbbc\MoneyBundle\Pair\RatioProviderInterface;
98

109
final class StaticRatioProviderTest extends AbstractRatioProvider
1110
{
12-
protected function getRatioProvider(): RatioProviderInterface
11+
protected function getRatioProvider(): StaticRatioProvider
1312
{
1413
$provider = new StaticRatioProvider();
1514
$ratios = $this->getRatiosToTest();

0 commit comments

Comments
 (0)