Skip to content

Commit

Permalink
Generate stubs for dokan 3.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mralaminahamed committed May 14, 2024
1 parent 46945d3 commit c44aa2a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

return \StubsGenerator\Finder::create()
->in( array(
'source/dokan',
'source/dokan-lite',
) )
->notPath('customizer')
->notPath('debug')
->append(
\StubsGenerator\Finder::create()
->in(['source/dokan'])
->in(['source/dokan-lite'])
->files()
->depth('< 1')
->path('dokan.php')
)
// ->notPath('customizer')
// ->notPath('debug')
->sortByName(true)
;
2 changes: 1 addition & 1 deletion generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -e

test -f "$FILE" || touch "$FILE"
test -f "$FILE_CONSTANTS" || touch "$FILE_CONSTANTS"
test -d "source/dokan"
test -d "source/dokan-lite"

# Exclude globals, constants.
"$(dirname "$0")/vendor/bin/generate-stubs" \
Expand Down
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
parameters:
paths:
- freemius-stubs.php
- dokan-stubs.php
scanFiles:
- freemius-constants-stubs.php
- dokan-constants-stubs.php
bootstrapFiles:
- bootstrap.php
level: 5
Expand Down
2 changes: 1 addition & 1 deletion release-latest-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WC_JSON="$(wget -q -O- "https://api.wordpress.org/plugins/info/1.0/dokan-lite.js
#for V in 3.5 3.6 3.7 3.8 3.9 \
# 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.8 4.9 \
# 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9; do
for V in 3.5 3.6 3.7 3.8 3.9 3.10 3.11; do
for V in 3.11; do
# Find latest version
#printf -v JQ_FILTER '."package"."versions"[]."version" | select(test("^%s\\\\.%s\\\\.\\\\d+$"))' "${V%.*}" "${V#*.}"
printf -v JQ_FILTER '."versions" | keys[] | select(test("^%s\\\\.%s\\\\.\\\\d+$"))' "${V%.*}" "${V#*.}"
Expand Down

0 comments on commit c44aa2a

Please sign in to comment.