You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e507dbb
Browse filesBrowse the repository at this point in the historyBrowse files
Test old git versions, and analyse the tests and the libgit2 driver
CI builds git 1.8.4, the oldest supported version, and 2.25.1, and runs
the suite with them: a test of this branch passed --bare with --origin,
which git refuses before 2.38.2. The workflow only reads the
repository, checks the tarballs it builds, keys the libgit2 cache on its
build flags, uses actions/cache 6, checks that the archive Composer
installs only ships the code, the docs and the license (export-ignore),
and Dependabot updates the actions and the tools.
PHPStan analyses the tests, with phpstan-phpunit, and the libgit2
driver, ignoring only the calls to FFI it can't see: it found real type
issues fixed here. PHP-CS-Fixer applies php_unit_strict. PHPUnit fails on
notices and on its own deprecations. psr/log, in the API, is required.
Blob::getMimetype() returns the mimetype alone, or throws, instead of
false. The fixture's refs are pinned: they must never move.
Copy file name to clipboardExpand all lines: composer.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@
37
37
"require": {
38
38
"php": "^8.4",
39
39
"ext-pcre": "*",
40
+
"psr/log": "^1.1 || ^2.0 || ^3.0",
40
41
"symfony/deprecation-contracts": "^2.5 || ^3",
41
42
"symfony/process": "^6.4 || ^7.4 || ^8.1",
42
43
"symfony/string": "^7.4.6 || ^8.0.6"
@@ -45,15 +46,14 @@
45
46
"ext-fileinfo": "*",
46
47
"ext-zlib": "*",
47
48
"phpunit/phpunit": "^12.0",
48
-
"psr/log": "^3.0",
49
49
"symfony/console": "^8.1"
50
50
},
51
51
"suggest": {
52
-
"ext-ffi": "To use the experimental LibGit2Driver (in-process libgit2) instead of the default CliDriver — also requires libgit2 1.9 to be installed on the system."
52
+
"ext-ffi": "To use the experimental LibGit2Driver (in-process libgit2) instead of the default CliDriver — also requires libgit2 1.9 to be installed on the system.",
53
+
"ext-fileinfo": "To read the mimetype of a blob with Blob::getMimetype()."
return$this->mimetype ??= new \finfo(\FILEINFO_MIME_TYPE)->buffer($this->getContent()) ?: thrownewRuntimeException(\sprintf('Unable to read the mimetype of the blob "%s".', $this->hash));
0 commit comments