Skip to content

Commit

Permalink
Get ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Sep 19, 2023
1 parent 8f2f216 commit 456d8b2
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 31 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
2.0.0
- Stable release

0.0.1-beta
- Migrate code from Server package
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "2.18.*",
"phpstan/phpstan": "0.12.*",
"phpstan/phpstan": "^1.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan-phpunit": "0.12.*",
"phpunit/phpunit": "8.5.*"
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.0"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -66,7 +66,10 @@
},
"config": {
"preferred-install": "dist",
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"funding": [
{
Expand Down
37 changes: 14 additions & 23 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Base">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<php>
<env name="ENV" value="testing"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" forceCoversAnnotation="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Base">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<env name="ENV" value="testing"/>
</php>
</phpunit>
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function predict(Dataset $dataset) : array;
* Return the joint probabilities of each sample in a dataset.
*
* @param \Rubix\ML\Datasets\Dataset $dataset
* @return array[]
* @return array<array<float>>
*/
public function proba(Dataset $dataset) : array;

Expand Down
4 changes: 2 additions & 2 deletions src/Helpers/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class JSON
*
* @param mixed $value
* @param int $options
* @param int $depth
* @param positive-int $depth
* @throws \Rubix\Client\Exceptions\JSONException
* @return string
*/
Expand All @@ -56,7 +56,7 @@ public static function encode($value, int $options = self::DEFAULT_OPTIONS, int
*
* @param string $data
* @param int $options
* @param int $depth
* @param positive-int $depth
* @throws \Rubix\Client\Exceptions\JSONException
* @return mixed[]
*/
Expand Down
2 changes: 1 addition & 1 deletion src/RESTClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function predictAsync(Dataset $dataset) : PromiseInterface
* Return the joint probabilities of each sample in a dataset.
*
* @param \Rubix\ML\Datasets\Dataset $dataset
* @return array[]
* @return array<array<float>>
*/
public function proba(Dataset $dataset) : array
{
Expand Down

0 comments on commit 456d8b2

Please sign in to comment.