Skip to content

Commit b908ec8

Browse files
committed
2024/01
1 parent dabbcfc commit b908ec8

File tree

16 files changed

+1578
-542
lines changed

16 files changed

+1578
-542
lines changed

.github/workflows/qa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: shivammathur/setup-php@v2
1414
with:
1515
php-version: "8.4"
16-
tools: phpcs:3.11, php-cs-fixer:3.64, phpstan:2.0.2
16+
tools: phpcs:3.11, php-cs-fixer:3.65, phpstan:2.0.3
1717
coverage: none
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.markdownlint.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
"default" : true,
33
"ul-indent" : { "indent" : 4 },
44
"line-length" : false,
5-
"no-alt-text" : false,
6-
"table-column-count" : false,
7-
"table-pipe-style" : false
5+
"no-alt-text" : false
86
}

.php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* php-cs-fixer configuration file.
55
*
6-
* minimum version: ^3.64
6+
* minimum version: ^3.65
77
*
88
* @see https://cs.symfony.com/doc/config.html
99
*/
@@ -22,7 +22,7 @@
2222
return (new PhpCsFixer\Config())
2323
->setRules([
2424
'@PHP84Migration' => true,
25-
'@PHP80Migration:risky' => true, // this also needs: ->setRiskyAllowed(true)
25+
'@PHP82Migration:risky' => true, // this also needs: ->setRiskyAllowed(true)
2626
'@PhpCsFixer' => true, // includes @Symfony, @PER-CS2.0, @PSR12, @PSR2, @PSR1
2727
'@PhpCsFixer:risky' => true, // includes @Symfony:risky, @PER-CS2.0:risky, @PSR12:risky
2828
'@PHPUnit100Migration:risky'=> true,

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
![php v8.4](https://shields.io/badge/php-8.4-blue?logo=php)
44
![build](https://img.shields.io/github/actions/workflow/status/tbali0524/advent-of-code-solutions/qa.yml)
5-
![AoC stars](https://img.shields.io/badge/total%20AoC%20⭐-450-green)
5+
![AoC stars](https://img.shields.io/badge/total%20AoC%20⭐-452-green)
66
![license](https://img.shields.io/github/license/tbali0524/advent-of-code-solutions)
77

88
* [AoC website](https://adventofcode.com/)
99
* My AoC username: `tbali0524`
10-
* [Puzzle list](puzzles.md) with topics and my completion status
10+
* [Puzzle list](puzzles.md) with topics and my completion status (in PHP)
1111
* Some [memes](memes.md) from AoC subreddit
12-
* Link to [this repo on GitHub](https://github.com/tbali0524/advent-of-code-solutions)
13-
* Link to my partial [rewrite of the solution in `Rust` on GitHub](https://github.com/tbali0524/advent-of-code-rust)
12+
* [This repo on GitHub](https://github.com/tbali0524/advent-of-code-solutions)
13+
* [My AoC solutions in Rust](https://github.com/tbali0524/advent-of-code-rust) (~3 seasons, 170⭐)
14+
15+
This repo contains all solutions for the first 9 seasons in PHP, plus a simple CLI runner. Later I rewrote some of the solutions in Rust. However, from season 2024 I plan to solve the puzzles first in Rust and rewrite it in PHP only later (if at all).
1416

1517
## Installation
1618

@@ -94,4 +96,8 @@ The following helper commands are defined in [composer.json](composer.json):
9496
|open-metrics |Open generated code metrics report in browser _(fixed file path)_|
9597
|clean |Delete generated cache and report files in `.tools` and `docs` directories _(Windows only)_|
9698

97-
__Note:__ The above tools are NOT listed in `composer.json` as dev dependencies. Instead, the commands must be available in the `PATH`. See minimum version requirements in the config files.
99+
### Notes
100+
101+
* The above tools are NOT listed in `composer.json` as dev dependencies. Instead, the commands must be available in the `PATH`. See minimum version requirements in the config files.
102+
* To run `php-cs-fixer` with `php v8.4`, set the `PHP_CS_FIXER_IGNORE_ENV` environment variable to `1`.
103+
* Currently several dev tools do not run or reports depreciations in `php v8.4`. (doc, loc, metrics)

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)