Skip to content

Instantly share code, notes, and snippets.

1 перевыброс ошибки работает, если это просто код

    
try{
    
echo "Try |";
throw new \Exception('tst');
}catch(\Throwable $t)
{

Present continuous

  • Concrete time in the past
  • 2 simulatenous actions in past
  • action in progress, interrupted by other action in past

What were you doing at 10 p.m yesterday?

I was reading (at that time)

@dozer111
dozer111 / fixer.md
Last active July 18, 2022 07:33
cs-fixer

/etc/bash.bashrc

# пофіксить тільки те, що змінилось в цій гілці
function ff(){
	CHANGED_FILES=$(git diff --name-only origin/master | grep ".php" | tr '\n' ' ');
	php ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff -v --allow-risky=yes --path-mode=intersection --using-cache=no -- ${CHANGED_FILES}
}
export -f ff #працює як аліас, щоб запустить вводимо "ff" в руті сервіса