Skip to content

Instantly share code, notes, and snippets.

View brianvarskonst's full-sized avatar

Brian Schäffner brianvarskonst

View GitHub Profile
@brianvarskonst
brianvarskonst / delete-merged-branches.sh
Created November 25, 2021 10:59
Remove merged Branches
git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d
@brianvarskonst
brianvarskonst / manipulate-private-property.php
Created August 15, 2023 09:11
Manipulate private property of instantiated object or class
<?php
$clone = clone $object;
(function () {
$this->changePrivateProperty = [];
})->call($clone);
return $clone;
@brianvarskonst
brianvarskonst / composer.json
Last active April 19, 2024 13:23
Maker:Bundle Debugging composer
{
"require": {
"php": ">=8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"api-platform/core": "^3.2",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "^2.17",
"moneyphp/money": "^4.3",