Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: php

php:
- 7.1
- 7.2
- 7.3

env:
matrix:
Expand All @@ -15,5 +15,5 @@ before_script:
script:
- composer run build

after_script:
- composer run coveralls
after_success:
- travis_retry php vendor/bin/php-coveralls -v
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class User

Requirements
------------
Works with PHP 7.1 or higher.
Works with PHP 7.2 or higher.

Submitting bugs and feature requests
------------------------------------
Expand All @@ -65,6 +65,9 @@ Thanks [Vašek Purchart](http://www.vasekpurchart.cz/) for ideas how to test Sym
Changelog
----------

## 4.0.0 (2018-XX-XX)
- [#6](../../pull/6) dropped support for PHP 7.1 as it is no longer supported

## 3.0.0 (2018-01-07)
- [#3](https://github.com/mhujer/jms-serializer-uuid-bundle/pull/3) Added Symfony 4.0 support, dropped support for Symfony 2. Requires PHP 7.1.

Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "^7.1",
"php": "~7.2",
"jms/serializer-bundle": "~1.0 || ~2.0",
"mhujer/jms-serializer-uuid": "~2.0",
"symfony/config": "~3.0 || ~4.0",
Expand All @@ -27,11 +27,12 @@
"symfony/yaml": "~3.0 || ~4.0"
},
"require-dev": {
"consistence/coding-standard": "2.3",
"jakub-onderka/php-parallel-lint": "0.9.2",
"matthiasnoback/symfony-dependency-injection-test": "2.3.0",
"phpunit/phpunit": "6.5.5",
"satooshi/php-coveralls": "2.0.0"
"consistence/coding-standard": "3.5",
"jakub-onderka/php-parallel-lint": "1.0.0",
"matthiasnoback/symfony-dependency-injection-test": "3.0.0",
"php-coveralls/php-coveralls": "2.1.0",
"phpunit/phpunit": "7.4.4",
"squizlabs/php_codesniffer": "3.3.2"
},
"autoload": {
"psr-4": { "Mhujer\\JmsSerializer\\Uuid\\SymfonyBundle\\": [ "src" ] },
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
failOnRisky="true"
verbose="true"
beStrictAboutChangesToGlobalState="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
>

<testsuites>
Expand Down
7 changes: 2 additions & 5 deletions src/DependencyInjection/MhujerJmsSerializerUuidExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ class MhujerJmsSerializerUuidExtension extends \Symfony\Component\HttpKernel\Dep
* @param mixed[][] $configs
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
*/
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/config'));
$loader->load('services.yml');
}

/**
* @return string
*/
public function getAlias()
public function getAlias(): string
{
return self::ALIAS;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ class MhujerJmsSerializerUuidExtensionTest extends \Matthias\SymfonyDependencyIn
/**
* @return \Symfony\Component\DependencyInjection\Extension\ExtensionInterface[]
*/
protected function getContainerExtensions()
protected function getContainerExtensions(): array
{
return [
new MhujerJmsSerializerUuidExtension(),
];
}

public function testRegisterSerializerHandler()
public function testRegisterSerializerHandler(): void
{
$this->load();

Expand Down