Skip to content

Commit

Permalink
Merge pull request #28 from jolicode/feature/jane-6.3-upgrade
Browse files Browse the repository at this point in the history
upgrade to Jane 6.3
  • Loading branch information
xavierlacot authored Jan 18, 2021
2 parents 2c385c5 + 3590a4b commit ce8166d
Show file tree
Hide file tree
Showing 113 changed files with 116 additions and 116 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
},
"require": {
"php": ">= 7.1",
"jane-php/open-api-runtime": "~6.2.0",
"jane-php/open-api-runtime": "^6.3",
"php-http/client-implementation": "*",
"php-http/client-common": "^1.7 || ^2.0"
},
"require-dev": {
"jane-php/open-api-2": "~6.2.0",
"symfony/http-client": "^5.1",
"jane-php/open-api-2": "^6.3",
"symfony/http-client": "^5.2",
"nyholm/psr7": "^1.3",
"friendsofphp/php-cs-fixer": "^2.16"
"friendsofphp/php-cs-fixer": "^2.18"
}
}
2 changes: 1 addition & 1 deletion generated/Endpoint/ClientsExpensesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
*
* @return null|\JoliCode\Harvest\Api\Model\ExpenseReportsResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/ClientsTimeReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateBillableRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\BillableRate|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\BillableRate', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Client|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Client', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Contact|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Contact', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateCostRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\CostRate|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\CostRate', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateEstimate.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Estimate|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Estimate', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateEstimateItemCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\EstimateItemCategory|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateEstimateMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\EstimateMessage|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateExpense.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Expense|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Expense', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateExpenseCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\ExpenseCategory|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Invoice|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Invoice', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateInvoiceItemCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\InvoiceItemCategory|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateInvoiceMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\InvoiceMessage|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateInvoicePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\InvoicePayment|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Project|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Project', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Role|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Role', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Task|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Task', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateTaskAssignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\TaskAssignment|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateTimeEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\User|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\User', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateUserAssignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\UserAssignment|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (201 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json');
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteEstimate.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteEstimateItemCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteEstimateMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteExpense.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteExpenseCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
*
* @return null|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
if (200 === $status) {
return null;
Expand Down
Loading

0 comments on commit ce8166d

Please sign in to comment.