Skip to content

Commit

Permalink
upgrade to PHP8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Dorn committed Mar 14, 2024
1 parent 65ef649 commit 3eaf5f3
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can install the package via composer:
composer require felixdorn/tin
```

## 🔞 Screenshots
## Screenshots

![A piece of code highlighted using tin ](art/screenshot.png)

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "felixdorn/tin",
"description": "tin is a PHP code highlighter for the terminal.",
"description": "tin is a code highlighter for PHP.",
"license": "MIT",
"authors": [
{
Expand All @@ -9,14 +9,14 @@
}
],
"require": {
"php": "^8.1"
"php": "^8.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v3.0.0",
"pestphp/pest": "^v1.22.1",
"phpstan/phpstan": "^1.8.5",
"friendsofphp/php-cs-fixer": "^v3.51",
"pestphp/pest": "^v1.23",
"phpstan/phpstan": "^1.10",
"spatie/pest-plugin-snapshots": "^1.1",
"symfony/var-dumper": "^v6.0.6"
"symfony/var-dumper": "^v6.4"
},
"autoload": {
"psr-4": {
Expand Down
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
inputs =
{
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};

outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.x86_64-linux.default = (import ./shell.nix { inherit pkgs; });
};
}

18 changes: 18 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ pkgs ? import <nixpkgs> { } }:

pkgs.mkShell
{
nativeBuildInputs = with pkgs; [
(php83.buildEnv {
extraConfig = ''
memory_limit = 6G
xdebug.mode=coverage
'';

extensions = ({ enabled, all }: enabled ++ (with all; [
xdebug
]));
})
php83Packages.composer
];
}

0 comments on commit 3eaf5f3

Please sign in to comment.