ultimike, to php
@ultimike@drupal.community avatar

Deep technical dive into creating a new, custom Rector rule by @joachim:

http://www.noreiko.com/blog/refactoring-rector

I really like this blog post, as it really explained Joachim’s thought process as he worked towards a solution.

#php #drupal #rector

beausimensen, to php
@beausimensen@phpc.social avatar

I'm looking for a #rector or php-cs-fixer rule that will enforce Modifier Keywords Order as defined in PER.

I would be fine with a PER-specific solution but happy to configure something generic w/ PER rules.

#php

alessandrolai,
@alessandrolai@phpc.social avatar

@beausimensen @Girgias maybe there's another dedicated rule? Because I see that they support the readonly token since a long time ago: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/5968

beausimensen,
@beausimensen@phpc.social avatar

@alessandrolai @Girgias If there is I haven't found it, yet. @Girgias suggested rule sense like where it belongs. What I meant to say is THAT RULE doesn't seem to care what order readonly comes.

joachim, to random
@joachim@drupal.community avatar

New blog post: code with - http://www.noreiko.com/blog/refactoring-rector (First blog post in nearly two years!)

wowa_TYPO3, to php German
@wowa_TYPO3@techhub.social avatar

🚀 Exciting news from the community! A recent code sprint has resulted in 15 new rules for TYPO3 and introduced Fractor, a promising new tool that can handle FlexForm, TypoScript, and more. Check it out! 🌟
https://typo3.org/article/typo3-rector-on-the-move

markusstaab, to random German
@markusstaab@phpc.social avatar

Worked on reducing overhead of #betterreflection to improve performance of #phpstan and #rector for projects which register a custom autoloader.

Our legacy projects autoloader which works in a include-path like fashion triggered lots of IO before.

Should be gone in next release

Norore, to php French
@Norore@social.zdx.fr avatar
lolli, to random
@lolli@norden.social avatar

Looking for a rule to change @test@norden.social annotation to #[Test] attribute. Could only find something for '@dataProvider' and '@testWith`. Any pointers?

danielsiepmann,

@test @lolli the migration comes from github.com/rectorphp/rector-ph… This is a configured rule, that's why you won't fine a specific implementation.

The config file is referenced via PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES from @brotkrueml mentioned PHPUNIT_10 github.com/rectorphp/rector-ph…

Hope that helps.

lolli,
@lolli@norden.social avatar
t3muc, to php German
@t3muc@typo3.social avatar

Am Dienstag, 12. Februar, geht es um 19 Uhr um das Thema Projektübernahmen und -updates.
@danielsiepmann zeigt uns, wie eine Übernahme gelingt und wie man das Projekt anschließend aktualisiert. Dabei gehts dann auch um Themen wie , Linting, Testing mit @phpunit und Tools wie @phpstan oder .

➡️ https://www.meetup.com/de-DE/munich-typo3-user-group/events/298927902/

kraehenhuegel,

@t3muc @danielsiepmann @phpunit @phpstan laut meinem Kalender wäre das ein Montag !?

cybersmog,
@cybersmog@phpc.social avatar

@kraehenhuegel In der ersten Version hatte ich den Tag falsch geschrieben. Ist mittlerweile entsprechend editiert!

cybersmog, to php
@cybersmog@phpc.social avatar

More than 20 new rules! 🎉
Rector is such a timesaver during every TYPO3 upgrades!

Big to everybody in the Rector team!

https://github.com/sabbelasichon/typo3-rector/releases/tag/v1.6.0

ProvenPudding,
@ProvenPudding@fosstodon.org avatar

@cybersmog Rector Rules Rule!

cybersmog, to php German
@cybersmog@phpc.social avatar

The members of the Association have selected four ideas to be funded in the first quarter of 2024. I'm particularly excited about the upcoming new rules. But also the other ideas to revive the image rendering initiative, improvements to the translation process of pages and content, and better ACLs with predefined users and groups are exciting.
If all these ideas are completed in Q1, it will be a huge step forward for TYPO3!

https://typo3.org/article/members-have-selected-four-ideas-to-be-funded-in-quarter-1-2024

symfonystation, to Symfony
@symfonystation@phpc.social avatar
bildstrich, to php

Hey Peeps,
Ich bin nicht so der Backend / PHP Typ. Wenn ich eine EXT für PHP 7.4 habe und die aber mit PHP 8 nutzen will - kann ich dafür nicht dieses nutzen?
Klappt das?

ervaude,

@bildstrich @cybersmog wie viel PHP code haste denn?

bildstrich,

@ervaude @cybersmog
Ja schon.
Habs jetzt mal durch Rector gejagd und schaue mal was passiert 😁

markusstaab, to opensource German
@markusstaab@phpc.social avatar

thanks @getsentry for sponsoring my open source efforts.

since I am not on the payroll of e.g. #phpstan or #rector, I need sponsors like you, to be able to continously contribute to #opensource project

markusstaab, to random German
@markusstaab@phpc.social avatar

#dependabot opens PRs for our home-grown framework; #rector automatically is running necessary code-migration steps in #githubactions.

home-grown continous deployment is picking up the changes; creates a isolated testing instance.

static analysis and testing helps along the way

mikestreety, to programming
@mikestreety@hachyderm.io avatar

We've had an internal linter for years, which is built on a PHP #symphony framework.

You run the linter you want and append --fix if you want it to resolve issues (if it can)

It lints things like #JS, #SCSS as well as #PHP (via #Rector and #phpstan), #Composer files and even #TYPO3 TypoScript files - all by using the open source libraries available.

It means all our developers can adhere to central linting conventions without having to update local config files.

mikestreety,
@mikestreety@hachyderm.io avatar

I've just managed to work out how to package each sperate linter into its own Docker container, so that each stage on a pipeline can run just that linter and not have to download the whole lot.

Linter configurations are odd things as I feel like I should open source it, but can't imagine anyone else would benefit as it's very niche to us

lil5,
@lil5@fosstodon.org avatar

@mikestreety I fear there are tons of web agencies that have a tool like that running in there standard CI

Instead ask around next conference you go to

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • ethstaker
  • rosin
  • mdbf
  • GTA5RPClips
  • Youngstown
  • slotface
  • InstantRegret
  • thenastyranch
  • khanakhh
  • kavyap
  • everett
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • Durango
  • cubers
  • love
  • modclub
  • osvaldo12
  • tacticalgear
  • cisconetworking
  • normalnudes
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines