Skip to content

Commit d9b2695

Browse files
committed
Fix jppm, add jppm profiles for tasks.
1 parent fa89aa3 commit d9b2695

File tree

25 files changed

+159
-42
lines changed

25 files changed

+159
-42
lines changed

jphp-core/api-docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
---
44

55
## jphp-core
6-
> version 1.0.4, created by JPPM.
6+
> version 1.1.0, created by JPPM.
77
88
Compiler and Launcher for JPHP.
99

1010
### Install
1111
```
12-
jppm add jphp-core@1.0.4
12+
jppm add jphp-core@1.1.0
1313
```
1414

1515
### API

jphp-core/api-docs/README.ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
---
44

55
## jphp-core
6-
> версия 1.0.4, создано с помощью JPPM.
6+
> версия 1.1.0, создано с помощью JPPM.
77
88
Compiler and Launcher for JPHP.
99

1010
### Установка
1111
```
12-
jppm add jphp-core@1.0.4
12+
jppm add jphp-core@1.1.0
1313
```
1414

1515
### АПИ

jphp-runtime/api-docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
---
44

55
## jphp-runtime
6-
> version 1.0.8, created by JPPM.
6+
> version 1.0.10, created by JPPM.
77
88
Runtime for JPHP + Standard library.
99

1010
### Install
1111
```
12-
12+
jppm add [email protected].10
1313
```
1414

1515
### API

jphp-runtime/api-docs/README.ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
---
44

55
## jphp-runtime
6-
> версия 1.0.8, создано с помощью JPPM.
6+
> версия 1.0.10, создано с помощью JPPM.
77
88
Runtime for JPHP + Standard library.
99

1010
### Установка
1111
```
12-
12+
jppm add [email protected].10
1313
```
1414

1515
### АПИ

jphp-runtime/api-docs/classes/php/lib/arr.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Library for working with collections - arrays, iterators, etc.
3838
- `arr ::`[`last()`](#method-last) - _Alias to peek()._
3939
- `arr ::`[`lastKey()`](#method-lastkey)
4040
- `arr ::`[`reverse()`](#method-reverse)
41+
- `arr ::`[`merge()`](#method-merge)
4142

4243
---
4344

@@ -261,6 +262,15 @@ arr::lastKey(array $collection): string|int|null
261262
arr::reverse(array $array): array
262263
```
263264

265+
---
266+
267+
<a name="method-merge"></a>
268+
269+
### merge()
270+
```php
271+
arr::merge(array $array, array $others): array
272+
```
273+
264274
---
265275
# Methods
266276

jphp-runtime/api-docs/classes/php/lib/arr.ru.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
- `arr ::`[`last()`](#method-last) - _Alias to peek()._
3939
- `arr ::`[`lastKey()`](#method-lastkey)
4040
- `arr ::`[`reverse()`](#method-reverse)
41+
- `arr ::`[`merge()`](#method-merge)
4142

4243
---
4344

@@ -258,6 +259,15 @@ arr::lastKey(array $collection): string|int|null
258259
arr::reverse(array $array): array
259260
```
260261

262+
---
263+
264+
<a name="method-merge"></a>
265+
266+
### merge()
267+
```php
268+
arr::merge(array $array, array $others): array
269+
```
270+
261271
---
262272
# Методы
263273

jphp-runtime/api-docs/classes/php/lib/fs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ Copies $source stream to $dest stream.
365365

366366
### move()
367367
```php
368-
fs::move(string $fromPath, string $toPath): void
368+
fs::move(string $fromPath, string $toPath): bool
369369
```
370370
Renames or moves a file or empty dir.
371371

@@ -375,7 +375,7 @@ Renames or moves a file or empty dir.
375375

376376
### rename()
377377
```php
378-
fs::rename(string $pathToFile, string $newName): void
378+
fs::rename(string $pathToFile, string $newName): bool
379379
```
380380
Set name for file, returns true if success.
381381

jphp-runtime/api-docs/classes/php/lib/fs.ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ fs::copy(string|File|Stream $source, string|File|Stream $dest, callable $onProgr
363363

364364
### move()
365365
```php
366-
fs::move(string $fromPath, string $toPath): void
366+
fs::move(string $fromPath, string $toPath): bool
367367
```
368368
Переименновывает или перемещает файл, либо пустую папку.
369369

@@ -373,7 +373,7 @@ fs::move(string $fromPath, string $toPath): void
373373

374374
### rename()
375375
```php
376-
fs::rename(string $pathToFile, string $newName): void
376+
fs::rename(string $pathToFile, string $newName): bool
377377
```
378378
Задает файлу новое название, возвращает true при успехе.
379379

jphp-runtime/package.php.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
name: jphp-runtime
3-
version: 1.0.8
3+
version: 1.0.10
44
description: Runtime for JPHP + Standard library.
55

66
plugins: [Doc, Hub]
@@ -14,6 +14,10 @@ config:
1414
ignore: ['/package.hub.yml']
1515

1616
history:
17+
1.0.10:
18+
- Add arr::merge method to merge arrays.
19+
1.0.9:
20+
- Fix is_numeric function
1721
1.0.8:
1822
- Now Timer works as Thread with daemon options
1923
1.0.7:

jphp-runtime/src/main/resources/JPHP-INF/sdk/php/lib/arr.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,13 @@ public static function lastKey($collection)
256256
public static function reverse(array $array)
257257
{
258258
}
259+
260+
/**
261+
* @param array $array
262+
* @param array ...$others
263+
* @return array
264+
*/
265+
public static function merge(array $array, array ...$others): array
266+
{
267+
}
259268
}

0 commit comments

Comments
 (0)