mirror of
https://github.com/php/frankenphp.git
synced 2026-03-23 16:42:13 +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
|
||||
# Conflicts with MARKDOWN
|
||||
VALIDATE_MARKDOWN_PRETTIER: false
|
||||
# To re-enable when https://github.com/super-linter/super-linter/issues/7244 will be closed
|
||||
VALIDATE_EDITORCONFIG: false
|
||||
# To re-enable when https://github.com/super-linter/super-linter/issues/7466 will be closed
|
||||
VALIDATE_SPELL_CODESPELL: false
|
||||
|
||||
@@ -12,7 +12,7 @@ A minimal `Caddyfile` to serve a PHP application is shown below:
|
||||
# The hostname to respond to
|
||||
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/
|
||||
php_server
|
||||
```
|
||||
|
||||
@@ -20,7 +20,7 @@ func (ag *arginfoGenerator) generate() error {
|
||||
}
|
||||
|
||||
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"
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
type State string
|
||||
|
||||
const (
|
||||
// livecycle States of a thread
|
||||
// lifecycle States of a thread
|
||||
Reserved State = "reserved"
|
||||
Booting State = "booting"
|
||||
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
|
||||
//
|
||||
// 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.
|
||||
// More types may be supported in the future.
|
||||
func GoValue[T any](zval unsafe.Pointer) (T, error) {
|
||||
|
||||
Reference in New Issue
Block a user