Skip to content

Commit

Permalink
tools(deps-dev): Update friendsofphp/php-cs-fixer requirement from 3.…
Browse files Browse the repository at this point in the history
…48.0 to 3.49.0 in /tools/php-cs-fixer (#402)

* tools(deps-dev): Update friendsofphp/php-cs-fixer requirement

Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](PHP-CS-Fixer/PHP-CS-Fixer@v3.48.0...v3.49.0)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* apply code style

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

* docs

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

* docs

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
dependabot[bot] and jkowalleck committed Feb 5, 2024
1 parent d82b0a2 commit c96a438
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions HISTORY.md
Expand Up @@ -4,16 +4,13 @@ All notable changes to this project will be documented in this file.

## unreleased

## 3.1.1 - 2024-01-20

Maintenance Release.

* Style
* Applied latest PHP Coding Standards (via [#395], [#398], [#399])
* Applied latest PHP Coding Standards (via [#395], [#398], [#399], [#402])

[#395]: https://github.com/CycloneDX/cyclonedx-php-library/pull/395
[#398]: https://github.com/CycloneDX/cyclonedx-php-library/pull/398
[#399]: https://github.com/CycloneDX/cyclonedx-php-library/pull/399
[#402]: https://github.com/CycloneDX/cyclonedx-php-library/pull/402

## 3.1.0 - 2023-12-02

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Models/BomRef.php
Expand Up @@ -38,7 +38,7 @@ final class BomRef
/** @psalm-var non-empty-string|null */
private ?string $value;

public function __construct(string $value = null)
public function __construct(?string $value = null)
{
$this->setValue($value);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Serialization/BaseSerializer.php
Expand Up @@ -84,7 +84,7 @@ private function normalize(Bom $bom)
/**
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
*/
final public function serialize(Bom $bom, bool $prettyPrint = null): string
final public function serialize(Bom $bom, ?bool $prettyPrint = null): string
{
return $this->realSerialize(
$this->normalize($bom),
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Serialization/Serializer.php
Expand Up @@ -41,5 +41,5 @@ interface Serializer
*
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
*/
public function serialize(Bom $bom, bool $prettyPrint = null): string;
public function serialize(Bom $bom, ?bool $prettyPrint = null): string;
}
2 changes: 1 addition & 1 deletion tools/php-cs-fixer/composer.json
Expand Up @@ -6,7 +6,7 @@
"php": "^8.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.48.0",
"friendsofphp/php-cs-fixer": "3.49.0",
"roave/security-advisories": "dev-latest"
},
"prefer-stable": true,
Expand Down

0 comments on commit c96a438

Please sign in to comment.