mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
ci: disable codespell linter (#2153)
This commit is contained in:
3
.codespellrc
Normal file
3
.codespellrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[codespell]
|
||||||
|
check-hidden =
|
||||||
|
skip = .git,docs/*/*,docs,*/go.mod,*/go.sum,./internal/phpheaders/phpheaders.go
|
||||||
4
.github/workflows/lint.yaml
vendored
4
.github/workflows/lint.yaml
vendored
@@ -47,5 +47,5 @@ jobs:
|
|||||||
VALIDATE_BIOME_LINT: false
|
VALIDATE_BIOME_LINT: false
|
||||||
# Conflicts with MARKDOWN
|
# Conflicts with MARKDOWN
|
||||||
VALIDATE_MARKDOWN_PRETTIER: false
|
VALIDATE_MARKDOWN_PRETTIER: false
|
||||||
# To re-enable when https://github.com/super-linter/super-linter/issues/7244 will be closed
|
# To re-enable when https://github.com/super-linter/super-linter/issues/7466 will be closed
|
||||||
VALIDATE_EDITORCONFIG: false
|
VALIDATE_SPELL_CODESPELL: false
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ A minimal `Caddyfile` to serve a PHP application is shown below:
|
|||||||
# The hostname to respond to
|
# The hostname to respond to
|
||||||
localhost
|
localhost
|
||||||
|
|
||||||
# Optionaly, the directory to serve files from, otherwise defaults to the current directory
|
# Optionally, the directory to serve files from, otherwise defaults to the current directory
|
||||||
#root public/
|
#root public/
|
||||||
php_server
|
php_server
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ func (ag *arginfoGenerator) generate() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if _, err := os.Stat(genStubPath); err != nil {
|
if _, err := os.Stat(genStubPath); err != nil {
|
||||||
return fmt.Errorf(`the PHP "gen_stub.php" file couldn't be found under %q, you can set the "GEN_STUB_SCRIPT" environement variable to set a custom location`, genStubPath)
|
return fmt.Errorf(`the PHP "gen_stub.php" file couldn't be found under %q, you can set the "GEN_STUB_SCRIPT" environment variable to set a custom location`, genStubPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
stubFile := ag.generator.BaseName + ".stub.php"
|
stubFile := ag.generator.BaseName + ".stub.php"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
type State string
|
type State string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// livecycle States of a thread
|
// lifecycle States of a thread
|
||||||
Reserved State = "reserved"
|
Reserved State = "reserved"
|
||||||
Booting State = "booting"
|
Booting State = "booting"
|
||||||
BootRequested State = "boot requested"
|
BootRequested State = "boot requested"
|
||||||
|
|||||||
2
types.go
2
types.go
@@ -257,7 +257,7 @@ func PHPPackedArray[T any](slice []T) unsafe.Pointer {
|
|||||||
// EXPERIMENTAL: GoValue converts a PHP zval to a Go value
|
// EXPERIMENTAL: GoValue converts a PHP zval to a Go value
|
||||||
//
|
//
|
||||||
// Zval having the null, bool, long, double, string and array types are currently supported.
|
// Zval having the null, bool, long, double, string and array types are currently supported.
|
||||||
// Arrays can curently only be converted to any[] and AssociativeArray[any].
|
// Arrays can currently only be converted to any[] and AssociativeArray[any].
|
||||||
// Any other type will cause an error.
|
// Any other type will cause an error.
|
||||||
// More types may be supported in the future.
|
// More types may be supported in the future.
|
||||||
func GoValue[T any](zval unsafe.Pointer) (T, error) {
|
func GoValue[T any](zval unsafe.Pointer) (T, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user