Skip to content

Commit

Permalink
Merge pull request #16 from stefandoorn/fixture
Browse files Browse the repository at this point in the history
Require at least PHP 8.0 & adjust ObjectManager reference
  • Loading branch information
stefandoorn authored Nov 2, 2023
2 parents 1105791 + c2b534d commit aa008f7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dist: trusty
sudo: false

php:
- 7.2
- 8.1

cache:
yarn: true
Expand Down
48 changes: 25 additions & 23 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,35 @@
"description": "Split number from street per address Sylius.",
"license": "MIT",
"require": {
"php": "^7.1 || ^8.0",
"php": "^8.0",

"sylius/sylius": "^1.1"
"sylius/sylius": "^1.10"
},
"require-dev": {
"behat/behat": "^3.4",
"behat/mink": "^1.7@dev",
"behat/mink-browserkit-driver": "^1.3",
"behat/mink-browserkit-driver": "^2.0",
"behat/mink-extension": "^2.2",
"behat/mink-selenium2-driver": "^1.3",
"friends-of-behat/context-service-extension": "^1.2",
"friends-of-behat/cross-container-extension": "^1.1",
"friends-of-behat/page-object-extension": "^0.2.1",
"friends-of-behat/page-object-extension": "^0.3.0",
"friends-of-behat/mink-debug-extension": "^2.0",
"friends-of-behat/service-container-extension": "^1.0",
"friends-of-behat/symfony-extension": "^1.2.1",
"friends-of-behat/symfony-extension": "^2.0",
"friends-of-behat/variadic-extension": "^1.1",
"lakion/mink-debug-extension": "^1.2.3",
"matthiasnoback/symfony-dependency-injection-test": "^2.0|^3.0",
"phpspec/phpspec": "^5.0",
"phpstan/phpstan-doctrine": "^0.10",
"phpstan/phpstan-shim": "^0.10",
"phpstan/phpstan-symfony": "^0.10",
"phpstan/phpstan-webmozart-assert": "^0.10",
"phpunit/phpunit": "^6.5",
"sensiolabs/security-checker": "^5.0",
"sylius-labs/coding-standard": "^2.0",
"symfony/browser-kit": "^3.4|^4.1",
"symfony/debug-bundle": "^3.4|^4.1",
"symfony/dotenv": "^3.4|^4.1",
"symfony/intl": "^3.4|^4.1",
"symfony/web-profiler-bundle": "^3.4|^4.1",
"symfony/web-server-bundle": "^3.4|^4.1"
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
"phpspec/phpspec": "^7.0",
"phpstan/phpstan-doctrine": "^1.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-symfony": "^1.0",
"phpstan/phpstan-webmozart-assert": "^1.0",
"phpunit/phpunit": "^9.5",
"sylius-labs/coding-standard": "^4.0",
"symfony/browser-kit": "^4.4 || ^5.4 || ^6.0",
"symfony/debug-bundle": "^4.4 || ^5.4 || ^6.0",
"symfony/dotenv": "^4.4 || ^5.4 || ^6.0",
"symfony/intl": "^4.4 || ^5.4 || ^6.0",
"symfony/web-profiler-bundle": "^4.4 || ^5.4 || ^6.0",
"symfony/web-server-bundle": "^4.4 || ^5.4 || ^6.0"
},
"prefer-stable": true,
"autoload": {
Expand All @@ -49,5 +46,10 @@
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
3 changes: 0 additions & 3 deletions src/Fixture/AddressFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class AddressFixture extends BaseAddressFixture
{
/**
* {@inheritdoc}
*/
protected function configureResourceNode(ArrayNodeDefinition $resourceNode): void
{
$resourceNode
Expand Down
3 changes: 1 addition & 2 deletions src/Fixture/OrderFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

namespace StefanDoorn\SyliusStreetNumberPlugin\Fixture;

use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Persistence\ObjectManager;
use SM\Factory\FactoryInterface as StateMachineFactoryInterface;
use StefanDoorn\SyliusStreetNumberPlugin\Entity\Interfaces\AddressInterface;
use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture;
use Sylius\Component\Core\Checker\OrderPaymentMethodSelectionRequirementCheckerInterface;
use Sylius\Component\Core\Checker\OrderShippingMethodSelectionRequirementCheckerInterface;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\OrderItemInterface;
Expand Down

0 comments on commit aa008f7

Please sign in to comment.