Offers tools for creating pdf files.

Overview

baldeweg/pdf-bundle

Offers tools for creating pdf files.

Getting Started

composer req baldeweg/pdf-bundle

Activate the bundle in your config/bundles.php, if not done automatically.

Baldeweg\Bundle\PdfBundle\BaldewegPdfBundle::class => ['all' => true],

Usage

use Baldeweg\Bundle\PdfBundle\Pdf;

$pdf = new Pdf();
$pdf->create($path, $filename, $content, $meta);

Template

With the default template the meta field should look like the following. You are free to overwrite this template (with @BaldewegPdf prefix) as documented at https://symfony.com/doc/current/bundles/override.html#override-templates. When using a base64 encoded image remove data:image/png;base64,, instead the string must start with an @.

sender:
- name
- street
- zip
- city
receiver:
- name
- street
- zip, city
details:
- name: date
  value: 01.01.2021
subject:
- subject 1
- subject 2
salutation: Dear Jane,
valediction: Greetings
signee:
- John
logo: url
Comments
  • Update symfony packages to v6 (major) - autoclosed

    Update symfony packages to v6 (major) - autoclosed

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | symfony/browser-kit (source) | require-dev | major | ^5.3 -> ^6.0 | | symfony/config (source) | require | major | ^5.3 -> ^6.0 | | symfony/console (source) | require | major | ^5.3 -> ^6.0 | | symfony/dependency-injection (source) | require | major | ^5.3 -> ^6.0 | | symfony/form (source) | require | major | ^5.3 -> ^6.0 | | symfony/framework-bundle (source) | require | major | ^5.3 -> ^6.0 | | symfony/http-foundation (source) | require | major | ^5.3 -> ^6.0 | | symfony/http-kernel (source) | require | major | ^5.3 -> ^6.0 | | symfony/options-resolver (source) | require | major | ^5.3 -> ^6.0 | | symfony/security-bundle (source) | require | major | ^5.3 -> ^6.0 | | symfony/twig-bundle (source) | require | major | ^5.3 -> ^6.0 | | symfony/var-dumper (source) | require-dev | major | ^5.3 -> ^6.0 | | symfony/yaml (source) | require | major | ^5.3 -> ^6.0 |


    Release Notes

    symfony/browser-kit

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/browser-kit/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/browser-kit/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/config

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/config/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/config/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/console

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/console/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/console/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/dependency-injection

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/dependency-injection/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/dependency-injection/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/form

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/form/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/form/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/framework-bundle

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/framework-bundle/compare/v6.0.0-RC1...v6.0.0)

    • feature #​44271 add Vonage bridge to replace the Nexmo one (nicolas-grekas)
    • bug #​44300 Fix property-info phpstan extractor discovery (1ed)

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/framework-bundle/compare/v5.4.0-RC1...v5.4.0)

    • feature #​44271 add Vonage bridge to replace the Nexmo one (nicolas-grekas)
    • bug #​44300 Fix property-info phpstan extractor discovery (1ed)
    symfony/http-foundation

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/http-foundation/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/http-foundation/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/http-kernel

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/http-kernel/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/http-kernel/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/options-resolver

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/options-resolver/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/options-resolver/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/security-bundle

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/security-bundle/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/security-bundle/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/twig-bundle

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/twig-bundle/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/twig-bundle/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes
    symfony/var-dumper

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/var-dumper/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes
    symfony/yaml

    v6.0.0

    Compare Source

    Changelog (https://github.com/symfony/yaml/compare/v6.0.0-RC1...v6.0.0)

    • no significant changes

    v5.4.0

    Compare Source

    Changelog (https://github.com/symfony/yaml/compare/v5.4.0-RC1...v5.4.0)

    • no significant changes

    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about these updates again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 1
  • Bump twig/twig from 3.3.8 to 3.4.3

    Bump twig/twig from 3.3.8 to 3.4.3

    Bumps twig/twig from 3.3.8 to 3.4.3.

    Changelog

    Sourced from twig/twig's changelog.

    3.4.3 (2022-09-28)

    • Fix a security issue on filesystem loader (possibility to load a template outside a configured directory)

    3.4.2 (2022-08-12)

    • Allow inherited magic method to still run with calling class
    • Fix CallExpression::reflectCallable() throwing TypeError
    • Fix typo in naming (currency_code)

    3.4.1 (2022-05-17)

    • Fix optimizing non-public named closures

    3.4.0 (2022-05-22)

    • Add support for named closures

    3.3.10 (2022-04-06)

    • Enable bytecode invalidation when auto_reload is enabled

    3.3.9 (2022-03-25)

    • Fix custom escapers when using multiple Twig environments
    • Add support for "constant('class', object)"
    • Do not reuse internally generated variable names during parsing
    Commits
    • c38fd6b Prepare the 3.4.3 release
    • 5a858ac Merge branch '2.x' into 3.x
    • ab40267 Prepare the 2.15.3 release
    • fc18c2e Update CHANGELOG
    • 2e8acd9 Merge branch '2.x' into 3.x
    • d6ea14a Merge branch '1.x' into 2.x
    • 35f3035 security #cve- Fix a security issue on filesystem loader (possibility to load...
    • be33323 Merge branch '2.x' into 3.x
    • 9170edf Fix doc CS
    • fab3e0f minor #3744 Adding installation instructions for Symfony (ThomasLandauer)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Update dependency rector/rector to ^0.14

    Update dependency rector/rector to ^0.14

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | rector/rector (source) | require-dev | minor | ^0.13 -> ^0.14 |


    Release Notes

    rectorphp/rector

    v0.14.0

    Compare Source

    First, we're just passed great achievement. Rector has pased over 10 000 000 downloads :tada: :partying_face:

    Thank you for joining us on this adventurous journey. Slowly but surely we're removing legacy code from codebases all over the world :pray: :+1:


    #### 2 Community Packages

    In Rector 0.14, 2 Rector extensions have matured enough to become standalone packages. We've decided to move them from the core closer to their own communities. Where they can grow faster and with inline of their community standards :+1: :family:

    Typo3 and Nette are now moved from Rector core to their own repositories:

    • https://github.com/sabbelasichon/typo3-rector
    • https://github.com/efabrica-team/rector-nette

    Read more about it in a post from our blog.


    #### New Features :partying_face:
    • [tests] Add Ability to yield files with names (#​2732), Thanks @​Wirone!
    • [TypedDeclaration] Add MockObject property type support to TypedPropertyFromAssignsRector (#​2737)
    • [TypeDeclaration] Make anonymous class return specific type, if implements (#​2738)
    • Improve ReturnTypeWillChangeRector to handle any method of defined type; move PhpDocFromTypeDeclarationDecorator to Downgrade rules (#​2754)
    • [Php73] Add Method Call support on on IsCountableRector (#​2762)

    #### Bugfixes :bug:
    • [Php80] Skip default no stmt next is case on ChangeSwitchToMatchRector (#​2728)
    • [DeadCode] Skip RemoveAlwaysTrueIfConditionRector on property use by @​var docblock on Trait (#​2729)
    • [Php80][TypeDeclaration] Handle UnionTypesRector+AddArrayReturnDocTypeRector on auto import FullyQualified doc (#​2730)
    • [DeadCode] Handle assign in If_ cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#​2734)
    • [Php80] Preserve int key defined not start from 0 on AnnotationToAttributeRector (#​2735)
    • [TypeDeclaration] Skip data providers in AddArrayReturnDocTypeRector, they're overly complex and not helpful to type (#​2736)
    • [CodingStyle] Fix re-print of self in PreferThisOrSelfMethodCallRector (#​2759)
    • [Php54][Php80] Handle no scope on LongArrayToShortArrayRector+AnnotationToAttributeRector (#​2749)
    • [Php81] Skip Encapsed on NullToStrictStringFuncCallArgRector (#​2744)
    • [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#​2752)
    • AddReturnTypeDeclarationBasedOnParentClassMethodRector fix mixed return type by parent interface (#​2755), Thanks @​MartinMystikJonas!
    • [Php73] Skip escaped Dash on RegexDashEscapeRector (#​2753), Thanks @​ebrigham1!
    • [CodeQuality][Up_TO_PHP_81] Handle crash indentation on combination LevelSetList::UP_TO_PHP_81 with SetList::CODE_QUALITY (#​2760)
    • [Php81] Handle crash on Crypt() single arg on NullToStrictStringFuncCallArgRector (#​2767)
    • [Php80] Handle trailing comma on AnnotationToAttributeRector on Doctrine JoinColumn (#​2766)
    • [CodeQuality][Up_TO_PHP_81] Handle crash indentation on combination LevelSetList::UP_TO_PHP_81 with SetList::CODE_QUALITY - take 2 (#​2763)
    • [DeadCode] Fix RemoveUnusedPrivateMethodParameterRector args keys re-order (#​2770)
    • [Php55] Handle no quote in backslash on PregReplaceEModifierRector (#​2771)
    • Make ServiceGetterToConstructorInjectionRector report only if node has changed, retarget to Class_ node with higher priority (#​2772)

    Doctrine Rector :orange_circle:

    Symfony Rector :musical_score:

    • Skip non-direct inheritors for AbstractType in RemoveDefaultGetBlockPrefixRector (#​219)
    • Handle single action with __construct on InvokableControllerRector (#​218)
    • [Symfony 2.5] Add AddViolationToBuildViolationRector (#​211)
    • [Symfony 2.8] Add ServiceSetStringNameToClassNameRector for fluents configs (#​213)
    • [Symfony60] Fix added return type for Router::getRouteCollection (#​207) - Thanks @​kick-the-bucket

    v0.13.10

    Compare Source

    New Features :tada:

    Bugfixes :bug:

    • [Php81] Skip Doctrine ORM MappedSuperClass attribute on ReadOnlyPropertyRector (#​2712)
    • [CodeQuality][CodingStyle] Handle crash assert($subStartPos >= 0 && $subEndPos >= 0) on combination CodeQuality and CodingStyle rules (#​2707)
    • [DeadCode] Handle crash on negation class const fetch with static:: and parent:: on RemoveDeadZeroAndOneOperationRector (#​2714)
    • [DowngradePhp81] Handle no scope on DowngradeFirstClassCallableSyntaxRector inside ArrayItem (#​2709)
    • Fix/do not inline constructor default when readonly (#​2720), Thanks @​kpn13!
    • Fix/early return inline constructor default 7319 (#​2716), Thanks @​kpn13!
    • [TypeDeclaration] Handle crash on intersection in Union type on AddMethodCallBasedStrictParamTypeRector (#​2704)
    • [DeadCode] Skip RemoveAlwaysTrueIfConditionRector on property use by @​var docblock (#​2717)
    • Apply ParametersAcceptorSelectorVariantsWrapper::select() take 2 (#​2718)
    • ExplicitMethodCallOverMagicGetSetRector fix (#​2719), Thanks @​MartinMystikJonas!
    • [Php56] Skip already initialized on next Stmt on AddDefaultValueForUndefinedVariableRector (#​2721)
    • [Php56] Ensure return null on empty variable initialization after check with existing stmts on AddDefaultValueForUndefinedVariableRector (#​2723)
    • [Php56] Handle jump not Expression stmt next initialized on AddDefaultValueForUndefinedVariableRector (#​2725)

    v0.13.9

    Compare Source

    New Features :tada:

    • [CodingStyle] Add StaticArrowFunctionRector (#​2657)
    • [CodingStyle] Add StaticClosureRector (#​2658)
    • [Php80] Add implements interface support on single file on AddParamBasedOnParentClassMethodRector (#​2660
    • [PHP 8.1] Extend MyCLabsMethodCallToEnumConstRector with getValue() and static call (#​2695)
    • [PHP 8.1] Keep use stmts in MyCLabsClassToEnumRector enum (#​2696)
    • Add AddReturnTypeDeclarationBasedOnParentClassMethodRector (#​2666), Thanks @​MartinMystikJonas!
    • [DX] Add input validation for method, property and function name to avoid invalid output ast (#​2668)
    • Improve namespace names validation (#​2670)

    Bugfixes :bug:

    • [DeadCode] Skip global and static variable on RemoveJustVariableAssignRector (#​2641)
    • [DeadCode] Skip global and static variable on ReturnEarlyIfVariableRector (#​2642)
    • [StrictTypes] Add MethodCall/StaticCall to ExclusiveNativeCallLikeReturnMatcher (#​2646)
    • [TypeDeclaration] Add assigned new to variable in ReturnTypeFromReturnNewRector (#​2647)
    • DependencyClassMethodDecorator: Prevent duplication of arguments (#​2643), Thanks @​jtojnar!
    • [TypeDeclaration] Skip Type modified between Assign and Return_ on ReturnTypeFromReturnNewRector (#​2650)
    • [TypeDeclaration] Skip modififed type between assign and return on ReturnTypeFromStrictNewArrayRector (#​2651)
    • [Php74] Skip TypedPropertyRector on final class by @​final docblock (#​2654)
    • [DeadCode] Handle crash on indirect parent BinaryOp on RemoveDuplicatedInstanceOfRector (#​2656), #​7293
    • [TypeDeclaration] Skip property exists in parent on TypedPropertyFromStrictConstructorRector (#​2659)
    • Fix test to only resolve to known classes (#​2663), Thanks @​dritter!
    • Fix getter method property substitution when the readable types don't match. (#​2667), Thanks @​mad-briller!
    • [CodeQuality] Handle crash attribute used on trait on CallableThisArrayToAnonymousFunctionRector (#​2675)
    • Attempt to fix incorrect doctrine table attribute values on php 8.1 (#​2699), Thanks @​acrobat!
    • [Transform] Handle crash string in EnumCase on StringToClassConstantRector (#​2680)
    • Fix InlineArrayReturnAssignRector and ChangeReadOnlyPropertyWithDefaultValueToConstantRector collision (#​2701)

    Removed :wastebasket:

    • move ReturnTypeFromStrictTypedCallRector to enterprise (#​2685)
    • [DX] Cleanup, Remove RepeatedLiteralToClassConstantRector, as very narrow use case; use rather phpstan + Remove ChangeLocalPropertyToVariableRector, as buggy and unreliable; better use PHPStan (#​2686)
    • Remove UnwrapFutureCompatibleIfFunctionExistsRector as very niche and specific (#​2688)
    • [CodingStyle] Deprecate PHPStormVarAnnotationRector, rather tokens responsibility (#​2677)

    v0.13.8

    Compare Source

    New Features :tada:

    • [CodeQuality] Add TernaryFalseExpressionToIfRector (#​2590)
    • [TypeDeclaration] Add ReturnTypeFromStrictScalarReturnExprRector (#​2601)
    • [EarlyReturn] Add ReturnEarlyIfVariableRector (#​2609)
    • [Php54] Add ArrayToShortArrayRector (#​2615), Thanks @​edsrzf!
    • [DeadCode] Add RemoveJustVariableAssignRector (#​2618)
    • [TypeDeclaration] Add TypedPropertyFromStrictSetUpRector (#​2636)

    Bugfixes :bug:

    • [DeadCode] Handle always terminated Switch_ on RemoveUnreachableStatementRector (#​2591)
    • [DeadCode] Handle collection of Case_ on RemoveUnreachableStatementRector (#​2593)
    • [DeadCode] Handle anonymous and arrow function uses in RemoveJustPropertyFetchRector (#​2592), Thanks @​kick-the-bucket!
    • [Naming] Skip used in arrow function args on RenameVariableToMatchMethodCallReturnTypeRector (#​2599)
    • [TypeDeclaration] Skip AddArrayReturnDocTypeRector on custom phpstan type (#​2608)
    • [DeadCode] Handle edge cases on RemoveJustVariableAssignRector (#​2621)
    • [Php71] Skip First Class Callable on RemoveExtraParametersRector (#​2622)
    • [CodeQuality] Fix CompactToVariablesRector to resolve values when the compact() is called (#​2627)
    • [DX] Improve direct return of Stmt arrays in Rector rules, remove NodesToAddCollector from AbstractRector (#​2623)
    • [CodingStyle] Handle VarConstantCommentRector+NewlineAfterStatementRector (#​2629)
    • [Php80] Skip no default on case collection assign on ChangeSwitchToMatchRector (#​2631)
    • [DeadCode] Do not remove first class callable VariadicPlaceholder arg on RemoveUnusedPrivateMethodParameterRector (#​2634)
    • [TypeDeclaration] Do not change more detailed return doc on ReturnTypeFromStrictNewArrayRector (#​2638)

    Removed :wastebasket:

    • Remove RemoveOverriddenValuesRector as flow of control is not reliable and could cause invalid removal (#​2614)
    • [CodeQuality] Remove DateTimeToDateTimeInterfaceRector as mostly opinionated and way too much generics (#​2598)
    • [EarlyReturn] Remove ReturnAfterToEarlyOnBreakRector as risky and turning around next/previous nodes (#​2624)
    • [Transform] Remove CallableInMethodCallToVariableRector as very narrow use case and sensitive to wrong change (#​2625)

    v0.13.7

    Compare Source

    New Features :tada:

    • Decouple new Downgrade PHP package: https://github.com/rectorphp/rector-downgrade-php
    • [TypeDeclaration] Add ReturnTypeFromStrictReturnExprRector (#​2563)
    • [TypeDeclaration] Add ReturnTypeFromStrictNativeFuncCallRector (#​2570)
    • [TypeDeclaration] Add ReturnTypeFromStrictNewArrayRector (#​2572)
    • [DowngradePhp80] Add DowngradeMixedTypeTypedPropertyRector (#​2579)
    • [Parallel] Display stack trace on --debug on parallel (#​2561)
    • Bump PHPStan to 1.8 (#​2588)

    Bugixes :bug:

    • [PSR4] Do not remove declare(strict_types=1) on NormalizeNamespaceByPSR4ComposerAutoloadRector (#​2551)
    • [Php54] Add MethodCall and StaticCall support on RemoveReferenceFromCallRector (#​2553)
    • Clean MethodToMethodCallRector (#​2554) , Thanks @​SelrahcD!
    • [DowngradePhp80] Do not change correct Union array docblock to mixed[] on DowngradeUnionTypeDeclarationRector (#​2555)
    • [CodeQuality] Drop ArrayThisCallToThisMethodCallRector as changes behavior and better handled by FirstClassCallableRector (#​2571)

    v0.13.6

    Compare Source

    New Features :tada:

    • [Core] AbstractScopeAwareRector is ready to be used in custom rules (#​2537)
    • [PHP 8.1] Add FirstClassCallableRector (#​2544)
    • [Php81] NullToStrictStringFuncCallArgRector - Register more functions (#​2543), Thanks @​hungtrinh!
    • Improve RectorConfig import methods (#​2526), Thanks @​alexndlm!

    Bugfixes :bug:

    • [Renaming] Do not rename docblock same name not found in use inside namespace (#​2471)
    • [TypeDeclaration] Skip generic on ReturnTypeDeclarationRector (#​2469)
    • [DeadCode] Skip using coealesce assign operator on return on RemoveUnusedPrivatePropertyRector (#​2476)
    • [DeadCode] Skip has return reassign Coalesce Op on RemoveUnusedPrivatePropertyRector (#​2477)
    • [Php55] Handle crash on concat variable single quote on PregReplaceEModifierRector (#​2483)
    • [PSR4] Handle invalid missing ; on NormalizeNamespaceByPSR4ComposerAutoloadRector with GroupUse (#​2488)
    • [Php70] Refactor MultiDirnameRector by moving nestingLevel check to separate method (#​2492)
    • [Php81] Fix crash on redis->set() on ReadOnlyPropertyRector (#​2494)
    • [TypeDeclaration] Skip implements mixed, and already has typed return on AddReturnTypeDeclarationRector (#​2509)
    • [Php81] Skip param reassign on ReadOnlyPropertyRector (#​2498)
    • [CodeQuality] Fix default array param in CallableThisArrayToAnonymousFunctionRector (#​2527)
    • [Transform] Handle with this->method() from current class on MethodCallToMethodCallRector (#​2531)
    • [PHP 7.0] skip non-existing method in StaticCallOnNonStaticToInstanceCallRector (#​2532)
    • [PHP 7.4] Skip default expr type on property, if there is mixed assign (#​2534)
    • [Php56] Skip multiple catch with same variable on AddDefaultValueForUndefinedVariableRector (#​2533)
    • [Php80] Skip Assign on its var not directly used in next return on ChangeSwitchToMatchRector (#​2535), #​7247
    • [Php81] Skip str_replace() pass array subject on NullToStrictStringFuncCallArgRector (#​2541)

    v0.13.5

    Compare Source

    New Features :tada:

    • [DeadCode] Add RemoveJustPropertyFetchRector (#​2433)
    • [DX] Make ClassAnnotationMatcher differentiate between known and unknown classes (#​2319), Thanks @​dritter!
    • [CS] Fix dynamic and broken indent detection, allow to configure spacing via RectorConfig::indent() method (#​2442)
    • [DX] Add deprecation exception about old ContainerConfigurator, to prepare for removal even in CI (#​2463)
    • use PHPStan 1.7.12, with phpdoc-parser 1.6.0 to fix endline issue (https://github.com/rectorphp/rector-src/commit/56651d0190ca04cdf0c33484d359ae197b455a15)
    • [DX] Detach typo3 from core to allow stable growth of both packages (#​2446)
    • [scoped] Build with Scoper 0.17.2 (#​2445)

    Bugfixes :bug:

    • [DX] Remove too detailed --type in init command, use fw documentation instead (#​2430)
    • [Renaming] Keep comment on RenameClassRector (#​2439)
    • [Renaming] Do not Rename Docblock inner Namespace on RenameClassRector (#​2441)
    • [Renaming] Handle crash on FuncCall with Arg class name conflict with use statement or namespace on RenameClassRector with auto import enabled (#​2431)
    • [DX] Remove symlinks option to require safe way of providing explicit paths (#​2443)
    • [Php74] Remove ReservedFnFunctionRector (#​2447)
    • [Renaming] Skip rename docblock on conflict with alias on RenameClassRector (#​2450)
    • [DeadCode][PHPUnit] handle crash on RemoveJustPropertyFetchForAssignRector+SimplifyForeachInstanceOfRector (#​2453)
    • [CodingStyle] Skip non-empty-string on VarConstantCommentRector (#​2451)
    • [Renaming] Do not rename class with same name inside different namespace on RenameClassRector (#​2455)
    • [Php72] Handle crash on PreInc usage on CreateFunctionToAnonymousFunctionRector (#​2456)
    • [Php70] Handle crash on EregToPregMatchRector (#​2460)

    v0.13.4

    Compare Source

    New Features :tada:

    • Update to php-parser 4.14.0 to work with literal _ number separator (#​2321)
    • Update to PHPStan 1.7.10 (#​2424)
    • [DowngradePhp82] Add DowngradeReadonlyClassRector to downgrade readonly class (#​2322)
    • [PHP 8.0] Add ConstantListClassToEnumRector (#​2404)
    • [DowngradePhp80] Add DowngradeEnumToConstantListClassRector (#​2416)
    • [DeadCode] Add RemoveJustPropertyFetchForAssignRector (#​2423)

    #### Bugfixes :bug:
    • [PHP 8.0] Fix double annotation change on annotation to attribute (#​2403)
    • [Attribute] Fix UseAliasNameMatcher for the last part of use import rename (#​2402)
    • [Core] Fix bootstrap stubs load on PHP 7.2 when vendor/ excluded via skip() (#​2394)
    • [Php74] Skip nullable mixed on Php 8.0 feature enabled on TypedPropertyRector (#​2414)
    • [Php80] Mirror additional docblock on importNames() on ClassPropertyAssignToConstructorPromotionRector (#​2410)
    • [Renaming] Skip docblock rename different namespace on RenameClassRector (#​2419)

    v0.13.3

    Compare Source

    Rector release downgrade is now handled in single run and with parallel run :zap: It's faster and vendor includes only the packages it really uses.


    #### New Features :tada:
    • [Laravel] Add set for Laravel 9.x (#​49), Thanks @​hirenkeraliya
    • [Attribures] Add annotation to attribute core rename in AnnotationToAttributeRector (#​2384)

    This now allows annotation to attribute rename with change in the namespace:

    -use Project\Annotation\Security as SC;
    +use Project\Attribute\Security as SC;
    
    -/**
    - * @​SC\LoggedIn
    - */
    +#[SC\LoggedIn]
    final class PrivateController
    {
    }
    

    #### Bugfixes :bug:
    • [Transform] Skip different method on CallableInMethodCallToVariableRector (#​2395)
    • [CodeQuality] Add empty array support to InlineArrayReturnAssignRector (#​2397)
    • [PHP 8.2] Skip readonly class on property without type in ReadOnlyClassRector (#​2398)
    • Add annotation to attribute core rename in AnnotationToAttributeRector (#​2380)
    • [DowngradePhp81] Handle crash parent Arg is missing scope on DowngradeFirstClassCallableSyntaxRector (#​2387)

    #### Changes :calendar:
    • remove working-dir option as not compatible with parallel run, better handle via CI working-dir options (#​2387)

    v0.13.2

    Compare Source

    Bugfixes :bug:

    • Fix missing ReflectionUnionType class by moving stub loader to RectorContainerFactory (#​2382)

    v0.13.1

    Compare Source

    New Features :tada:

    • [CodeQuality] Add InlineIsAInstanceOfRector (#​2364)
    • [DX] Move configure to direct call in RectorConfig (#​2367)
    • [DX] Various config merge, improve RectorConfig methods (#​2371)
    • [DX] Remove non-PHP file formatting based on editorconfig, rather let external coding standard tools handle the file format (#​2378)

    Bugfixes :bug:


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Configure Mend Bolt for GitHub

    Configure Mend Bolt for GitHub

    Welcome to Mend Bolt for GitHub (formerly WhiteSource). This is an onboarding PR to help you understand and configure settings before Mend starts scanning your repository for security vulnerabilities.

    :vertical_traffic_light: Mend Bolt for GitHub will start scanning your repository only once you merge this Pull Request. To disable Mend Bolt for GitHub, simply close this Pull Request.


    What to Expect

    This PR contains a '.whitesource' configuration file which can be customized to your needs. If no changes were applied to this file, Mend Bolt for GitHub will use the default configuration.

    Before merging this PR, Make sure the Issues tab is enabled. Once you merge this PR, Mend Bolt for GitHub will scan your repository and create a GitHub Issue for every vulnerability detected in your repository.

    If you do not want a GitHub Issue to be created for each detected vulnerability, you can edit the '.whitesource' file and set the 'minSeverityLevel' parameter to 'NONE'.


    :question: Got questions? Check out Mend Bolt for GitHub docs. If you need any further assistance then you can also request help here.

    opened by mend-bolt-for-github[bot] 0
  • Update dependency rector/rector to ^0.13

    Update dependency rector/rector to ^0.13

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | rector/rector (source) | require-dev | minor | ^0.12 -> ^0.13 |


    Release Notes

    rectorphp/rector

    v0.13.0

    Compare Source

    New Features :tada:

    ##### From YAML routes to Annotations :rocket:
    • [Symfony] Add new rule to add annotations from router configuration to symfony controllers (#​169), Thanks @​malteschlueter
    -foo_baz:
    -    path: /foo/{baz}
    -    defaults: { _controller: FooBundle:Bar:baz, _format: json }
    -    methods: [ GET, POST ]
    
    +/**
    + * @​Route(name="foo_baz", path="/foo/{baz}", methods={"GET","POST"}, defaults={_format="json"})
    + */
     public function bazAction(string $baz)
    

    ##### New `StmtsAwareInterface` node
    • [DX] Add StmtsAwareInterface to catch node by type (#​2269)

    Do you need to iterface all rules with stmts in them? Hook in one node type:

       /**
         * @&#8203;return array<class-string<Node>>
         */
        public function getNodeTypes(): array
        {
            return [StmtsAwareInterface::class];
        }
    

    ##### Bugfixes :bug:

    v0.12.23

    Compare Source

    This release fixes major slowdown on find parents node rules in stmts: https://github.com/rectorphp/rector/issues/7144, thanks for report and provided detailed info @​bobvandevijver and @​jrmcpeek :bow:

    Update as soon as possible to enjoy the speed again :+1:

    • [Code] Improve BetterNodeFinder::findFirstPrevious() to only locate previous of parent if no previous of Node (#​2209), Thanks @​samsonasik!

    New Features :tada:

    • [CodeQuality] Add InlineArrayReturnAssignRector (#​2183)
    • Add RectorConfigProvider to ask for configuration behave for 3rd party packages (#​2187)
    • [Core] Add $seconds, $maxNumberOfProcess, and $jobSize parameters to RectorConfig::parallel() method (#​2188), Thanks @​samsonasik!
    • [DX] Move PhpVersionProvider from AbstractRector to particular services (#​2189)
    • [DowngradePhp80] Support match as array item in DowngradeMatchToSwitchRector (#​2178), Thanks @​jrstanley!

    Bugfixes 🐛

    • [DeadCode] Improve RemoveUnreachableStatementRector performance by return after array_splice early (#​2193), Thanks @​samsonasik!
    • [DeadCode] Register array_splice into impure functions on PureFunctionDetector (#​2194), Thanks @​samsonasik!
    • [CodingStyle] Skip readonly type property on AddArrayDefaultToArrayPropertyRector (#​2196), Thanks @​samsonasik!
    • [DeadCode] Remove RemoveCodeAfterReturnRector, already handled at RemoveUnreachableStatementRector (#​2199), Thanks @​samsonasik!

    v0.12.22

    Compare Source

    This release slowly moves towards RectorConfig to improve Rector isolation from your project and ease to configuration. You can read more about it here: https://getrector.org/blog/new-in-rector-012-introducing-rector-config-with-autocomplete

    New Features :tada:

    • [DX] Update super old configure to RectorConfig (#​2121)
    • [DX] Add RectorConfig upgrade rule to make upgrade easier :) (#​2098)
    • Improve BetterNodeFinder::findFirstPrevious() to work without statements (#​2136)
    • Invalidate errored files in cache, to avoid hiding errors (#​2138)
    • [NodeCollector] Remove CurrentStmtResolver service (#​2143), Thanks @​samsonasik!
    • [DX] Add note warning about using old config (#​2177), Thanks @​dritter!
    • DowngradeMatchToSwitchRector adds Method and Function call support (#​2173), Thanks @​jrstanley!

    #### Bugfixes 🐛
    • [Fix][InlineSimplePropertyAnnotationRector] Add test case and minor fix (#​2096), Thanks @​dorrogeray!
    • [TypeDeclaration] Skip union param type on AddArrayParamDocTypeRector (#​2119), Thanks @​samsonasik!
    • [TypeDeclaration] Skip return property not exists by ClassReflection on ReturnTypeDeclarationRector (#​2134), Thanks @​samsonasik!
    • [Php80] Handle named type on JMS\AccessType on AnnotationToAttributeRector (#​2141), Thanks @​samsonasik!
    • [DeadCode] Skip remove variable on switch use return after break on RemoveUnusedVariableAssignRector (#​2145), Thanks @​samsonasik!
    • [Php80] Skip different type cases cond on ChangeSwitchToMatchRector (#​2147), Thanks @​samsonasik!
    • Remove PREVIOUS_STATEMENT from StatementNodeVisitor (#​2146)
    • Remove CURRENT_STATEMENT where not needed (#​2149)
    • [Php74] Allow change protected property of final class when property only in current class on TypedPropertyRector (#​2153), Thanks @​samsonasik!
    • Remove uses nodes attribute - part #​1 (#​2155)
    • Disable StatementNodeVisitor (#​2154)
    • Remove NamespaceNodeVisitor (#​2167)
    • Decouple aliased object type specifier + updgrade to PHPStan 1.6 (#​2170)
    • [DowngradePhp80] Add Static Call Support on DowngradeMatchToSwitchRector (#​2175), Thanks @​samsonasik!
    • Adds test for DowngradeMatchToSwitchRector match having true subject expression (#​2176), Thanks @​jrstanley!
    • [TypeDeclaration] Skip return type defined Closure on ReturnTypeDeclarationRector (#​2179), Thanks @​samsonasik!
    • [Doc] Document deprecated USE_NODES and CURRENT_STATEMENT constant to use existing method call when needed (#​2181), Thanks @​samsonasik!
    • [Doctrine][Nette][TypeDeclaration] Handle add __construct with no Scope on InitializeDefaultEntityCollectionRector+RenderMethodParamToTypeDeclarationRector (#​2180), Thanks @​samsonasik!

    v0.12.21

    Compare Source

    New RectorConfig to configure your rector.php Without Effort!

    Before
    use Rector\Core\Configuration\Option;
    use Rector\Php74\Rector\Property\TypedPropertyRector;
    use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
    
    return static function (ContainerConfigurator $containerConfigurator): void {
        $parameters = $containerConfigurator->parameters();
        $parameters->set(Option::PARALLEL, true);
        $parameters->set(Option::AUTO_IMPORT_NAMES, true);
       
        $services = $containerConfigurator->services();
        $services->set(TypedPropertyRector::class);
    };
    
    Now
    use Rector\Php74\Rector\Property\TypedPropertyRector;
    use Rector\Config\RectorConfig;
    
    return static function (RectorConfig $rectorConfig): void {
        $rectorConfig->parallel();
        $rectorConfig->importNames();
     
        $rectorConfig->rule(TypedPropertyRector::class);
    };
    

    #### New Features :tada:
    #### Bugfixes 🐛
    #### Changes :bar_chart:
    • [DX] Replace global BetterStandardPrinter from AbstractRector with autowired NodePrinterInterface for easier and specific re-use (#​2036)
    • Move RemovedAndAddedFilesCollector, ParameterProvider from AbstractRector to rules that actually use it (#​2038)
    • [DX] Remove deprecated attributes (#​2039)
    • Merge SimplifyDuplicatedTernaryRector to UnnecessaryTernaryExpressionRector, almost identical rule (#​2046)
    • Merge InArrayAndArrayKeysToArrayKeyExistsRector to ArrayKeysAndInArrayToArrayKeyExistsRector with almost identical behavior (#​2047)
    • Merge FollowRequireByDirRector to almost identical AbsolutizeRequireAndIncludePathRector (#​2048)
    • [build] fix tagging on release (https://github.com/rectorphp/rector-src/commit/451964615066aabcced75e66e4af9f13be5b5f7b)

    v0.12.20

    Compare Source

    • Bump min to PHP 7.2 (#​1955) - following PHPStan 1.5 bump, PHP 7.1 usage of Rector is only ~0.2 %

    New Features :tada:

    Bugfixes 🐛

    • Fix bug with handling bad symlinks (#​1938), Thanks @​inderpreet99!
    • Fix stub PHPUnit\Framework\TestCase (#​1960), Thanks @​samsonasik!
    • [TypeDeclaration] Skip ArrayShapeFromConstantArrayReturnRector on key has colon (#​1962), Thanks @​samsonasik!
    • [TypeDeclaration] Skip key has bracket {}[] on ArrayShapeFromConstantArrayReturnRector (#​1968), Thanks @​samsonasik!
    • [CodeQuality] Handle not identical return false then true on SimplifyIfReturnBoolRector (#​1969), Thanks @​samsonasik!
    • [Php81] Skip anonymous class on FinalizePublicClassConstantRector (#​1970), Thanks @​samsonasik!
    • Handle annotation import with enable AUTO_IMPORT_NAMES not changed (for non-namespaced file) (#​1973), Thanks @​samsonasik!
    • [CodeQuality] Handle Param by reference in target method on CallableThisArrayToAnonymousFunctionRector (#​1974), Thanks @​samsonasik!
    • [TypeDeclaration] Skip return inside array_map on ArrayShapeFromConstantArrayReturnRector (#​1977), #​7079, Thanks @​samsonasik!
    • [Privatization] Skip parent static property used by parent method on PrivatizeFinalClassPropertyRector (#​1978), Thanks @​samsonasik!
    • [Php80] Skip empty default on ChangeSwitchToMatchRector (#​1980), Thanks @​samsonasik!
    • [TypeDeclaration] Fix AddMethodCallBasedStrictParamTypeRector for offset type (#​1982)
    • Fix AddClosureReturnTypeRector for union types of mutually related classes (#​1984), Thanks @​samsonasik!
    • [CodingStyle] Skip AddFalseDefaultToBoolPropertyRector on assigned in __construct (#​1998), Thanks @​samsonasik!
    • [TypeDeclaration] Handle default value on not inlined assignment in __construct on TypedPropertyFromStrictConstructorRector (#​2008), Thanks @​samsonasik!
    • [TypeDeclaration] Handle multiple methods define __construct later on TypedPropertyFromStrictConstructorRector (#​2009), Thanks @​samsonasik!
    • [TypeDeclaration] Skip __construct in inner class on TypedPropertyFromStrictConstructorRector (#​2010), Thanks @​samsonasik!
    • [PHPStan] Fix PHPStan notice on ParallelFileProcessor (#​2011), Thanks @​samsonasik!

    v0.12.19

    Compare Source

    New Features :tada:

    • [DX] simplify --debug output to the proccessed file path (#​1933)
    • [Php80] Handle return match no default on ChangeSwitchToMatchRector (#​1949), Thanks @​samsonasik!
    • [Php80] Handle init in before else on ChangeSwitchToMatchRector (#​1952), Thanks @​samsonasik!

    Bugfixes 🐛

    v0.12.18

    Compare Source

    New Features :tada:

    • [TypeDeclaration] Add ArrayShapeFromConstantArrayReturnRector (#​1908)
    • [Transform] Add type matching to MethodCallToPropertyFetchRector (#​1905)
    • [Arguments] Add RemoveMethodCallParamRector (#​1906)
    • [CodeQuality] Add InlineConstructorDefaultToPropertyRector (#​1935)
    • Add StaticCall support to RemoveMethodCallParamRector (#​1916)
    • [DX] simplify --debug output to the proccessed file path (#​1933)

    Bugfixes 🐛

    • [CodeQuality] Handle default value on CallableThisArrayToAnonymousFunctionRector (#​1900), Thanks @​samsonasik!
    • [TypeDeclaration] Skip ArrayShapeFromConstantArrayReturnRector on class name as key (#​1911), Thanks @​samsonasik!
    • [Php81] Skip override __construct from interface on NewInInitializerRector (#​1913), Thanks @​samsonasik!
    • [Arguments] Handle by pass 2nd argument default value on ArgumentAdderRector (#​1946), Thanks @​samsonasik!
    • [DeadCode] Handle used in anonymous class on RemoveUnusedConstructorParamRector (#​1948), Thanks @​samsonasik!
    • [Transform] Handle property exists via Property Promotion on NewToMethodCallRector (#​1915), Thanks @​samsonasik!
    • [Renaming] Apply rename fully qualified namespace docblock on RenameNamespaceRector (#​1917), Thanks @​samsonasik!
    • [CodingStyle] Handle Interface suffix on CatchExceptionNameMatchingTypeRector (#​1918), Thanks @​samsonasik!
    • [CodingStyle] Use alias name when exists on CatchExceptionNameMatchingTypeRector (#​1920), Thanks @​samsonasik!
    • Fix some minor misprints (#​1922), Thanks @​bocharsky-bw!
    • [Dep] Add PHPUnit\Framework\TestCase stub on target-repository bootstrap.php (#​1924), Thanks @​samsonasik!
    • [TypeDeclaration] Fix parent method param override (#​1945)
    • [DeadCode][CodingStyle] Handle SplitDoubleAssignRector+RemoveUnusedPrivatePropertyRector (#​1944), Thanks @​samsonasik!
    • [Php81] Skip static property on ReadOnlyPropertyRector (#​1939), Thanks @​samsonasik!
    • [PHP 8.0] Fix skip of silent key in annotation to attribute (#​1932)

    Deprecations ⌛️

    • [MockeryToProphecy] Deprecate micro set as not practical (#​1899)
    • [PhpSpecToPHPUnit] Deprecate historical set, mostly for experimental in early days (#​1901)
    • Remove old PHPSpec 3 and 4 sets (#​1902)
    • [Order] Deprecate rather coding standard related set, use OrderedClassElementsFixer instead (#​1910)
    • [Transform] Remove AddInterfaceByParentRector as never used (#​1935)
    • [DeadCode] Skip called by current classname on RemoveUnusedPrivateClassConstantRector (#​1931), Thanks @​samsonasik!

    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Update actions/checkout action to v3

    Update actions/checkout action to v3

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | actions/checkout | action | major | v2 -> v3 |


    Release Notes

    actions/checkout

    v3

    Compare Source


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Bump symfony/security-bundle from 5.3.8 to 5.3.12

    Bump symfony/security-bundle from 5.3.8 to 5.3.12

    Bumps symfony/security-bundle from 5.3.8 to 5.3.12.

    Release notes

    Sourced from symfony/security-bundle's releases.

    v5.3.12

    Changelog (https://github.com/symfony/security-bundle/compare/v5.3.11...v5.3.12)

    • no significant changes

    v5.3.11

    Changelog (https://github.com/symfony/security-bundle/compare/v5.3.10...v5.3.11)

    • bug #43901 Default access_decision_manager.strategy option with merge (biozshock)
    Commits
    • be52715 security #cve-2021-41268 [SecurityBundle] Default signature_properties to the...
    • c541926 [Tests] Remove some unused fixtures
    • fa5b4ec Merge branch '4.4' into 5.3
    • 18d4a66 Default access_decision_manager.strategy option with merge.
    • 04a76b7 Fix misleading error on missing provider with authenticator manager
    • 550e5db [SecurityBundle] Default signature_properties to the previous behavior
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Update dependency rector/rector to ^0.12

    Update dependency rector/rector to ^0.12

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | rector/rector (source) | require-dev | minor | ^0.11 -> ^0.12 |


    Release Notes

    rectorphp/rector

    v0.12.3

    Compare Source

    Bugfixes 🐛

    • [Scoped] Fix missing trigger_deprecatoin() in explicit preload (#​1207)
    • [Scoped] Include scoped-autoload for tests too (#​1207), #​6798
    • [PHP 7.4] Fix AddLiteralSeparatorToNumberRector for null token (#​1206)

    New Features :tada:

    v0.12.2

    Compare Source

    Bugfixes 🐛

    New Features :tada:

    v0.12.1

    Compare Source

    Bugfixes 🐛

    • [Php70] Avoid error Undefined property: PhpParser\Node\Stmt\Class_::$namespacedName on ThisCallOnStaticMethodToStaticCallRector (#​1197), Thanks @​samsonasik!

    v0.12.0

    Compare Source

    I'm proud to share the biggest Rector release yet built on work of dozen contributors!

    Main focus of this release is on type-completing rules, PHP 7-8 upgrade rules, moving from node attributes to parent node relations and upgrade to PHPStan 1.0.

    New Features 🎉

     use \Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
    
     $services->set(StringClassNameToClassConstantRector::class);
        ->call('configure', [[
            StringClassNameToClassConstantRector::CLASSES_TO_SKIP => [
    -    		'Nette\Utils\String',
    -    		'Nette\Neon\Neon',
    -    		'Nette\Application\UI\Presenter',
    +    		'Nette\*'
    		],
        ]]);
    

    #### Bugfixes 🐛
    • Fix inverseJoinColumns Doctrine annotation class mapping (#​1142), Thanks @​fezfez!
    • Fix type without class name mapping without substracted type (#​1104)
    • [DeadCode] Skip Route annotation on RemoveDelegatingParentCallRector (#​1138), Thanks @​samsonasik!
    • [TypeDeclaration] Skip nullable self referencing param and return on AddArrayParamDocTypeRector and ReturnTypeDeclarationRector (#​1183), Thanks @​samsonasik!
    • [TypeDeclaratoin] Skip variadic param (https://github.com/rectorphp/rector-src/commit/04354c2e3fbb1693023e81bd12a677d9586494d3)
    • Skip union if parent type in ClassMethodParamTypeCompleter (#​1103)
    • [DeadCode] Skip dynamic fetch method call on RemoveUnusedPrivateMethodRector (#​1128), Thanks @​samsonasik!
    • [Renaming] Handle rename property too when parent property renamed (#​1031), #​6758, Thanks @​samsonasik!
    • [Php56] Skip AddDefaultValueForUndefinedVariableRector on has isset check (#​1028), #​6760, Thanks @​samsonasik!
    • Check for ClassLike instance in PropertyFetchFinder (#​1033), Thanks @​canvural!
    • [AnonymousFunctionFactory] Do not pass variables defined in foreach or parameters list to closure uses (#​1038), Thanks @​Lctrs!
    • [Php71] Skip typed array property on CountOnNullRector (#​1049), Thanks @​samsonasik!
    • [Php73] Skip JsonThrowOnErrorRector on passed exact value (#​1051), Thanks @​samsonasik!
    • [Php80] Skip union callable on ClassPropertyAssignToConstructorPromotionRector (#​1101), Thanks @​samsonasik!
    • [CodeQuality] Skip Variable may be immutable via New_ or Clone_ on SimplifyUselessVariableRector (#​1060), Thanks @​samsonasik!
    • [DowngradePhp74] fix uses for nested arrow functions with same param names (#​1090), Thanks @​Lctrs!
    • [DeadCode] Handle bool var if cond return true next return bool var on RemoveDuplicatedIfReturnRector (#​1136), Thanks @​samsonasik!
    • fix intersection type with single type (#​1086)
    • [TypeDeclaration] Skip ternary on ParamTypeByMethodCallTypeRector (#​1131), Thanks @​zingimmick!

    #### PHPStan 1.0 Upgrade ⛺️

    This Rector version depends on PHPStan more then ever. We're using its php-parser (many of them actually), class name visitor resolver and static/this/self types. That's why we had to take time to make sure the upgrade to PHPStan 1.0 is stable.

    • [PHPStan 1.0] upgrade deprecated getNativeMethods() method (#​1069)
    • Improve self/static/parent object reference (#​1071)
    • [PHPStan 1.0] Make SelfType, StaticType and ThisType use ClassReflection over string (#​1072)
    • SelfType and StaticType are now handled in ObjectTypeSpecifier (#​1077)
    • [PHPStan 1.0] Use processNodes() over processNodeStmts() (#​1111)
    • [PHPStan 1.0] use selectFromArgs() for function reflectoin to get passed by reference positoins (#​1113)
    • [PHPStan 1.0] Remove sorted union types, now handled by default (#​1112)
    • [PHPStan 1.0] resolve FunctionReflection getFileName() from main interface (#​1117)
    • [PHPStan 1.0] Remove ReflectionWithFilename (#​1118)
    • Fix issue of parsing PHP 8 sources on PHP 7.x (#​1184), Thanks @​ondrejmirtes!
    • [PHPStan 1.0] Remove node naming visitors and re-use PHPStan ones (#​1144)
    • PHPStan\Reflection\ClassReflection::getFileName() now returns null|string (https://github.com/rectorphp/rector-src/commit/96868614ddf147218dcd2ac58faf58f0650c2869)
    • PHPStan\Reflection\ClassReflection::getParentClass now returns null|class reflection (https://github.com/rectorphp/rector-src/commit/1cc7dc3c96eee816d911ac00f93b72404a8dfa5c)
    • NativeFunctionReflection has new parameter (https://github.com/rectorphp/rector-src/commit/ca8276956f11d5cd4740fb6261600a6bd0e032e5)
    • Remove ClearReturnNewByReferenceRector, PHPStan cannot handle it (https://github.com/rectorphp/rector-src/commit/051c75131fe2e1e7789431b2b879cb15ed2daa83)
    PHPStan 1.0-Related Changes

    Class names are now available in the node itself:

    -$className = $node->getAttribute(AttributeKey::CLASS_NAME);
    
    ↓
    
     // in case of class like
    +$className = $classLike->namespacedName
    
     // in case of anonymous class
    +$className = $classLike->name
    
     // or widely used method in AbstractRector
     $className = $this->getName($classLike)
    

    #### Deprecated/Removed ⚰️
    • [CodingStyle] Deprecate RemoveUnusedAliasRector, job rather for coding standard tool and opinonated (#​1157)
    • Remove FileNodeVisitor, available in AbstractRector (#​1145)
    • [CodeQuality] Remove FixClassCaseSensitivityNameRector, conflicting with name node removal and edge case already handled by PHPStan reports (#​1160)
    • remove deprecated AttributeKey::FILE_INFO const attribute (https://github.com/rectorphp/rector-src/commit/8f7fea0925cc00d35b1607122b8719f8d7597007)
    • Remove dead classes (#​1133)
    • Remove dead classes #​2, remove unused PlatformAgnosticAssertions, remove ConsoleShowOutputFormatter (#​1134)
    • [Defluent] Remove often-breaking set (#​1062)

    #### Attribute Keys Changes 📈

    This is not about PHP 8.0 attributes, but about helper php-parser attributes that allow to store mixed data in any node.

    • Move from CLASS_NODE attribute to more reliable parent node finder (#​1162)
    • Move from CLASS_METHOD node attribute to parent finder (#​1167)
    • Deprecatd METHOD_NAME node (#​1169)
    • Refactor CLASS_NAME to parent/scope name resolver (#​1170)

    These attributes were based on prepared node tree and utils attributes that always returned mixed. This proven as unreliable and required always checking for the correct type in fetched attribute. That's why these are no longer used:

    • AttributeKey::CLASS_NODE
    • AttributeKey::CLASS_NAME
    • AttributeKey::METHOD_NODE
    • AttributeKey::METHOD_NAME
    How to Upgrade?

    Use BetterNodeFinder service to get the parent node you need with generics support:

    -$class = $node->getAttribute(AttributeKey::CLASS_NODE);
    // mixed type
    
    +$class = $this->betterNodeFinder->findParentType($node, Class_::class);
    // Class_|null
    
    -$classMethod = $node->getAttribute(AttributeKey::METHOD_NODE);
    // mixed type
    
    +$classMethod = $this->betterNodeFinder->findParentType($node, ClassMethod::class);
    // Class_|null
    

    v0.11.60

    Compare Source

    v0.11.59

    Compare Source

    v0.11.58

    Compare Source

    v0.11.57

    Compare Source


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 0
Owner
André Baldeweg
André Baldeweg
Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using Gravity Forms.

Gravity PDF Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using the pop

Gravity PDF 90 Nov 14, 2022
Magento 2 Invoice PDF Generator - helps you to customize the pdf templates for Magento 2

Magento 2 Invoice PDF Generator - helps you to customize the pdf templates for Magento 2. If you have an enabled template and a default template for the store you need your template the system will print the pdf template.

EAdesign 64 Oct 18, 2021
Magento 2 Module for creating PDF's based on wkhtmltopdf

Magento 2 PDF generator Magento 2 module to ease the pdf generation using wkhtmltopdf features Installation composer require "staempfli/magento2-modul

Stämpfli AG 56 Jul 7, 2022
PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.

PdfParser Pdf Parser, a standalone PHP library, provides various tools to extract data from a PDF file. Website : https://www.pdfparser.org Test the A

Sebastien MALOT 1.9k Jan 2, 2023
PHP library generating PDF files from UTF-8 encoded HTML

mPDF is a PHP library which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF (see CREDITS), with a number of enhancement

null 3.8k Jan 2, 2023
Pdf and graphic files generator library written in php

Information Examples Sample documents are in the "examples" directory. "index.php" file is the web interface to browse examples, "cli.php" is a consol

Piotr Śliwa 335 Nov 26, 2022
Sign PDF files with valid x509 certificate

Sign PDF files with valid x509 certificate Require this package in your composer.json and update composer. This will download the package and the depe

Lucas Nepomuceno 175 Jan 2, 2023
Simple wrapper package around MPDF's setProtection method that allows you to set password on PDF files

Laravel PDF Protect (fork) Simple wrapper package around MPDF's setProtection method that allows you to set password on PDF files. Installation You ca

Raphael Planer 2 Jan 23, 2022
Convert HTML to PDF using Webkit (QtWebKit)

wkhtmltopdf and wkhtmltoimage wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF and various image formats using the QT Webk

wkhtmltopdf 13k Jan 4, 2023
HTML to PDF converter for PHP

Dompdf Dompdf is an HTML to PDF converter At its heart, dompdf is (mostly) a CSS 2.1 compliant HTML layout and rendering engine written in PHP. It is

null 9.3k Jan 1, 2023
PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage

Snappy Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. It uses the excellent webkit-based wkhtmltopd

KNP Labs 4.1k Dec 30, 2022
Official clone of PHP library to generate PDF documents and barcodes

TCPDF PHP PDF Library Please consider supporting this project by making a donation via PayPal category Library author Nicola Asuni [email protected] co

Tecnick.com LTD 3.6k Jan 6, 2023
TCPDF - PHP PDF Library - https://tcpdf.org

tc-lib-pdf PHP PDF Library UNDER DEVELOPMENT (NOT READY) UPDATE: CURRENTLY ALL THE DEPENDENCY LIBRARIES ARE ALMOST COMPLETE BUT THE CORE LIBRARY STILL

Tecnick.com LTD 1.3k Dec 30, 2022
Convert html to an image, pdf or string

Convert a webpage to an image or pdf using headless Chrome The package can convert a webpage to an image or pdf. The conversion is done behind the sce

Spatie 4.1k Jan 1, 2023
A PHP tool that helps you write eBooks in markdown and convert to PDF.

Artwork by Eric L. Barnes and Caneco from Laravel News ❤️ . This PHP tool helps you write eBooks in markdown. Run ibis build and an eBook will be gene

Mohamed Said 1.6k Jan 2, 2023
Laravel Snappy PDF

Snappy PDF/Image Wrapper for Laravel 5 and Lumen 5.1 This package is a ServiceProvider for Snappy: https://github.com/KnpLabs/snappy. Wkhtmltopdf Inst

Barry vd. Heuvel 2.3k Jan 2, 2023
Generate simple PDF invoices with PHP

InvoiScript Generate simple PDF invoices with PHP. Installation Run: composer require mzur/invoiscript Usage Example use Mzur\InvoiScript\Invoice; re

Martin Zurowietz 16 Aug 24, 2022
Convert a pdf to an image

Convert a pdf to an image This package provides an easy to work with class to convert PDF's to images. Spatie is a webdesign agency in Antwerp, Belgiu

Spatie 1.1k Dec 29, 2022
PHP library allowing PDF generation or snapshot from an URL or an HTML page. Wrapper for Kozea/WeasyPrint

PhpWeasyPrint PhpWeasyPrint is a PHP library allowing PDF generation from an URL or an HTML page. It's a wrapper for WeasyPrint, a smart solution help

Pontedilana 23 Oct 28, 2022